mirror of
https://github.com/python/cpython.git
synced 2026-01-29 14:15:31 +00:00
when there are no more `await` or `yield (from)` before return in coroutine,
cancel was ignored.
example:
async def coro():
asyncio.Task.current_task().cancel()
return 42
...
res = await coro() # should raise CancelledError
Source files for standard library extension modules, and former extension modules that are now builtin modules.