cpython/Lib/asyncio
romasku 382a5635bd
bpo-40607: Reraise exception during task cancelation in asyncio.wait_for() (GH-20054)
Currently, if asyncio.wait_for() timeout expires, it cancels
inner future and then always raises TimeoutError. In case
those future is task, it can handle cancelation mannually,
and those process can lead to some other exception. Current
implementation silently loses thoses exception.

To resolve this, wait_for will check was the cancelation
successfull or not. In case there was exception, wait_for
will reraise it.

Co-authored-by: Roman Skurikhin <roman.skurikhin@cruxlab.com>
2020-05-15 13:12:05 -07:00
..
__init__.py bpo-38242: Revert "bpo-36889: Merge asyncio streams (GH-13251)" (#16482) 2019-09-29 21:59:55 -07:00
__main__.py bpo-37028: asyncio REPL; activated via 'python -m asyncio'. (GH-13472) 2019-05-27 13:42:29 +02:00
base_events.py bpo-39609: set the thread_name_prefix for the default asyncio executor (GH-18458) 2020-02-27 12:01:47 -08:00
base_futures.py bpo-34622: Extract asyncio exceptions into a separate module (GH-9141) 2018-09-11 10:13:04 -07:00
base_subprocess.py bpo-32528: Make asyncio.CancelledError a BaseException. (GH-13528) 2019-05-27 14:45:12 +02:00
base_tasks.py bpo-39764: Make Task.get_stack accept ag_frame (#18669) 2020-03-02 14:45:54 +02:00
constants.py
coroutines.py bpo-36921: Deprecate @coroutine for sake of async def (GH-13346) 2019-05-16 07:52:10 -07:00
events.py bpo-40443: Remove unused imports in the stdlib (GH-19803) 2020-04-30 11:26:33 +02:00
exceptions.py bpo-32528: Make asyncio.CancelledError a BaseException. (GH-13528) 2019-05-27 14:45:12 +02:00
format_helpers.py
futures.py bpo-38978: Implement __class_getitem__ for asyncio objects (GH-17491) 2019-12-07 03:05:07 -08:00
locks.py bpo-34793: Drop old-style context managers in asyncio.locks (GH-17533) 2020-02-01 13:12:52 +02:00
log.py
proactor_events.py Remove binding of captured exceptions when not used to reduce the chances of creating cycles (GH-17246) 2019-11-19 21:34:03 +00:00
protocols.py bpo-35394: Add empty slots to abstract asyncio protocols (#10889) 2018-12-11 19:07:05 +02:00
queues.py bpo-38978: Implement __class_getitem__ for asyncio objects (GH-17491) 2019-12-07 03:05:07 -08:00
runners.py Fix and improve asyncio.run() docs (GH-16403) 2019-09-30 17:12:21 -07:00
selector_events.py bpo-39006: Fix asyncio when the ssl module is missing (GH-17524) 2019-12-09 15:02:03 +01:00
sslproto.py bpo-40443: Remove unused imports in the stdlib (GH-19803) 2020-04-30 11:26:33 +02:00
staggered.py Fix import path for asyncio.TimeoutError (#17691) 2019-12-24 12:46:42 +02:00
streams.py bpo-38529: Fix asyncio stream warning (GH-17474) 2019-12-07 13:22:00 +02:00
subprocess.py bpo-38242: Revert "bpo-36889: Merge asyncio streams (GH-13251)" (#16482) 2019-09-29 21:59:55 -07:00
tasks.py bpo-40607: Reraise exception during task cancelation in asyncio.wait_for() (GH-20054) 2020-05-15 13:12:05 -07:00
transports.py bpo-38148: Add slots to asyncio transports (GH-16077) 2019-09-13 15:18:46 +03:00
trsock.py bpo-37027: Return a proxy socket object from transp.get_extra_info('socket') (GH-13530) 2019-05-27 06:57:19 -07:00
unix_events.py bpo-38356: Fix ThreadedChildWatcher thread leak in test_asyncio (GH-16552) 2020-01-12 03:02:50 -08:00
windows_events.py bpo-29883: Asyncio proactor udp (GH-13440) 2019-05-28 02:52:15 -07:00
windows_utils.py asyncio: __del__() keep reference to warnings.warn (GH-11491) 2019-01-10 11:24:40 +01:00