Message405088
I want top-level await without any boilerplate code or setup.
Just write a "await" statement on line 1 without any indention.
#!/usr/bin/env python3
import asyncio
await asyncio.sleep(1)
I don't want to have to call asyncio.run(main()), and I don't want to have to put the await inside an async function. |
|
Date |
User |
Action |
Args |
2021-10-27 11:38:05 | Fred | set | recipients:
+ Fred |
2021-10-27 11:38:05 | Fred | set | messageid: <1635334685.92.0.999778106074.issue45625@roundup.psfhosted.org> |
2021-10-27 11:38:05 | Fred | link | issue45625 messages |
2021-10-27 11:38:05 | Fred | create | |
|