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 AtsushiSakai
Recipients AtsushiSakai, docs@python
Date 2021-06-13.05:17:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623561463.56.0.048465518238.issue44407@roundup.psfhosted.org>
In-reply-to
Content
This is very small documentation improvement proposal.

In the "Coroutines and Tasks" doc, the code example after "Let’s modify the above example and run two say_after coroutines concurrently:" is missing "asyncio.run(main())" at the end of the code example:

async def main():
    task1 = asyncio.create_task(
        say_after(1, 'hello'))

    task2 = asyncio.create_task(
        say_after(2, 'world'))

    print(f"started at {time.strftime('%X')}")

    # Wait until both tasks are completed (should take
    # around 2 seconds.)
    await task1
    await task2

    print(f"finished at {time.strftime('%X')}")
History
Date User Action Args
2021-06-13 05:17:43AtsushiSakaisetrecipients: + AtsushiSakai, docs@python
2021-06-13 05:17:43AtsushiSakaisetmessageid: <1623561463.56.0.048465518238.issue44407@roundup.psfhosted.org>
2021-06-13 05:17:43AtsushiSakailinkissue44407 messages
2021-06-13 05:17:43AtsushiSakaicreate