python / asyncio

asyncio historical repository
https://docs.python.org/3/library/asyncio.html
1.04k stars 177 forks source link

Document gather's undeterministic scheduling of awaitables and coroutines #433

Closed JustinTArthur closed 7 years ago

JustinTArthur commented 7 years ago

Resolves #432. This is probably the best performing solution. The workaround for a programmer that wishes their coroutine objects to be undertaken in a deterministic order is for them to schedule the execution on the loop themselves with asyncio.ensure_future or loop.create_task before calling asyncio.gather.

JustinTArthur commented 7 years ago

434 is an alternative to this.