16 lines
217 B
Python
16 lines
217 B
Python
|
import aiosched
|
||
|
|
||
|
|
||
|
async def deadlock():
|
||
|
await aiosched.Event().wait()
|
||
|
|
||
|
|
||
|
async def parent():
|
||
|
async with aiosched.skip_after(5):
|
||
|
await deadlock()
|
||
|
print("Done")
|
||
|
|
||
|
|
||
|
aiosched.run(parent)
|
||
|
print("Exited")
|