News for hackers. Stuff that matters.
Re:Python and Async Simplified (2018) by throwway2332 on Saturday October 22, 2022 @11:33AM (#33299122)
> to allow concurrency, you should use asyncio.create_task on coro (formerly ensure_future).

This is misleading... you can use asyncio.gather which does this internally [0].

[0]: https://github.com/python/cpython/blob/main/Lib/asyncio/task...

Re:Python and Async Simplified (2018) by BiteCode_dev on Saturday October 22, 2022 @12:44PM (#33299863)
Only if you wish to collect tasks where you schedule them, accumulate the results and don't need to limit concurrency.
Re:Python and Async Simplified (2018) by Spivak on Monday October 24, 2022 @04:54PM (#33322567)
Serious question, why would you limit concurrency in async world? You’re still on a single thread, why would you want to only schedule n things at a time?