forked from M-Labs/artiq
1
0
Fork 0

tools/asyncio_wait_or_cancel: wait for cancellation

This commit is contained in:
Sebastien Bourdeauducq 2015-05-21 16:41:27 +08:00
parent 6c35d066fc
commit a670b9f660
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ def asyncio_wait_or_cancel(fs, **kwargs):
raise
for f in p:
f.cancel()
yield from asyncio.wait([f])
return fs