mirror of https://github.com/m-labs/artiq.git
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
|
||||
for f in p:
|
||||
f.cancel()
|
||||
yield from asyncio.wait([f])
|
||||
return fs
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue