This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cnd
Recipients asvetlov, cnd, yselivanov
Date 2020-05-06.04:06:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588737963.7.0.298937096343.issue40526@roundup.psfhosted.org>
In-reply-to
Content
> 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())
History
Date User Action Args
2020-05-06 04:06:03cndsetrecipients: + cnd, asvetlov, yselivanov
2020-05-06 04:06:03cndsetmessageid: <1588737963.7.0.298937096343.issue40526@roundup.psfhosted.org>
2020-05-06 04:06:03cndlinkissue40526 messages
2020-05-06 04:06:02cndcreate