Message368223
> The sample on this page is not demonstrating anything asynchronous:
> https://docs.python.org/3/library/asyncio.html
Put something that is relevant please. e.g.
import asyncio
import time
async def say_after(delay, what):
await asyncio.sleep(delay)
print(what)
async def main():
print(f"started at {time.strftime('%X')}")
await say_after(2, 'world')
await say_after(1, 'hello')
print(f"finished at {time.strftime('%X')}")
asyncio.run(main()) |
|
Date |
User |
Action |
Args |
2020-05-06 04:06:03 | cnd | set | recipients:
+ cnd, asvetlov, yselivanov |
2020-05-06 04:06:03 | cnd | set | messageid: <1588737963.7.0.298937096343.issue40526@roundup.psfhosted.org> |
2020-05-06 04:06:03 | cnd | link | issue40526 messages |
2020-05-06 04:06:02 | cnd | create | |
|