forked from M-Labs/artiq
tools/asyncio_wait_or_cancel: wait for cancellation
This commit is contained in:
parent
6c35d066fc
commit
a670b9f660
|
@ -109,6 +109,7 @@ def asyncio_wait_or_cancel(fs, **kwargs):
|
||||||
raise
|
raise
|
||||||
for f in p:
|
for f in p:
|
||||||
f.cancel()
|
f.cancel()
|
||||||
|
yield from asyncio.wait([f])
|
||||||
return fs
|
return fs
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue