Message368287
> If so, the main purpose of that example is just to demonstrate basic async/await syntax, and show asyncio.run() for a trivial case to clearly show how it's used at a fundamental level; it's intentional that the more involved examples that demonstrate asynchronous programming are contained in https://docs.python.org/3/library/asyncio-task.html#coroutine. Also, the example is simple and condensed enough that it requires zero additional explanation or context, as should be the case for a simple "hello world" example. Consider the perspective of someone who found the page without having previously seen async/await syntax used.
Yes, exactly. |
|
Date |
User |
Action |
Args |
2020-05-06 18:01:32 | yselivanov | set | recipients:
+ yselivanov, asvetlov, aeros, cnd |
2020-05-06 18:01:32 | yselivanov | set | messageid: <1588788092.89.0.258976542428.issue40526@roundup.psfhosted.org> |
2020-05-06 18:01:32 | yselivanov | link | issue40526 messages |
2020-05-06 18:01:32 | yselivanov | create | |
|