SIGN IN SIGN UP

bpo-30048: asyncio: fix Task.cancel() was ignored. (GH-1097)

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
I
INADA Naoki committed
991adca012f5e106c2d4040ce619c696ba6f9c46
Parent: c475095
Committed by GitHub <noreply@github.com> on 5/11/2017, 12:18:38 PM