cpython/Lib/asyncio
Tin Tvrtković 7fce1063b6
bpo-46771: Implement task cancel requests counter (GH-31513)
This changes cancelling() and uncancel() to return the count of pending cancellations.

This can be used to avoid bugs in certain edge cases (e.g. two timeouts going off at the same time).
2022-02-23 18:17:00 -08:00
..
__init__.py bpo-46752: Add TaskGroup; add Task..cancelled(),.uncancel() (GH-31270) 2022-02-15 15:42:04 -08:00
__main__.py
base_events.py Raise TypeError if SSLSocket is passed to asyncio transport-based methods (GH-31442) 2022-02-20 14:17:15 +02:00
base_futures.py bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020) 2020-11-10 15:58:31 +02:00
base_subprocess.py
base_tasks.py bpo-46752: Add TaskGroup; add Task..cancelled(),.uncancel() (GH-31270) 2022-02-15 15:42:04 -08:00
constants.py bpo-44011: New asyncio ssl implementation (#31275) 2022-02-15 15:04:00 +02:00
coroutines.py bpo-43216: Remove @asyncio.coroutine (GH-26369) 2021-07-01 15:13:59 +02:00
events.py bpo-44011: New asyncio ssl implementation (#31275) 2022-02-15 15:04:00 +02:00
exceptions.py bpo-42413: Replace concurrent.futures.TimeoutError and asyncio.TimeoutError with builtin TimeoutError (GH-30197) 2021-12-19 13:22:40 +02:00
format_helpers.py
futures.py bpo-45390: Propagate CancelledError's message from cancelled task to its awaiter (GH-31383) 2022-02-21 22:59:04 +02:00
locks.py bpo-46796: Simplify handling of removed parameter "loop" in asyncio (GH-31431) 2022-02-21 13:25:52 +02:00
log.py
mixins.py bpo-46796: Simplify handling of removed parameter "loop" in asyncio (GH-31431) 2022-02-21 13:25:52 +02:00
proactor_events.py Inherit asyncio proactor datagram transport from asyncio.DatagramTransport (#31512) 2022-02-23 01:39:24 +02:00
protocols.py bpo-46741: Update asyncio.protocols.BufferedProtocol docstring (31327) 2022-02-15 18:39:28 +02:00
queues.py bpo-46796: Simplify handling of removed parameter "loop" in asyncio (GH-31431) 2022-02-21 13:25:52 +02:00
runners.py bpo-42392: Remove loop parameter from asyncio.tasks and asyncio.subprocess (GH-23521) 2020-11-28 10:21:17 +02:00
selector_events.py bpo-46827: pass sock.type to getaddrinfo in sock_connect (GH-31499) 2022-02-22 22:35:57 +02:00
sslproto.py bpo-44011: New asyncio ssl implementation (#31275) 2022-02-15 15:04:00 +02:00
staggered.py Fix import path for asyncio.TimeoutError (#17691) 2019-12-24 12:46:42 +02:00
streams.py bpo-39529: Deprecate creating new event loop in asyncio.get_event_loop() (GH-23554) 2021-04-25 13:40:44 +03:00
subprocess.py bpo-42392: Remove loop parameter from asyncio.tasks and asyncio.subprocess (GH-23521) 2020-11-28 10:21:17 +02:00
taskgroups.py bpo-46752: Uniform TaskGroup.__repr__ (GH-31409) 2022-02-20 12:07:00 +02:00
tasks.py bpo-46771: Implement task cancel requests counter (GH-31513) 2022-02-23 18:17:00 -08:00
threads.py Trivial typo in docstring 2021-07-31 06:36:10 +02:00
transports.py bpo-46487: Add get_write_buffer_limits to Write and _SSLProtocol transports (GH-30958) 2022-02-01 18:05:02 +02:00
trsock.py bpo-43232: Remove previously deprecated methods on TransportSocket (GH-24538) 2021-06-30 09:19:09 +03:00
unix_events.py bpo-44011: New asyncio ssl implementation (#31275) 2022-02-15 15:04:00 +02:00
windows_events.py bpo-46310: simplify for loop in asyncio/windows_events (GH-30334) 2022-01-11 12:51:34 +02:00
windows_utils.py