mirror of
https://github.com/m-labs/artiq.git
synced 2025-01-12 12:03:35 +08:00
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
Block a user