done, pending = asyncio.get_event_loop().run_until_complete(asyncio.wait([
sync()])) # terminated here
print(pending)
for task in done:
     done.result()  # it will not raise the exception



Reply via email to