python / asyncio

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

Ensure order of tasks scheduled on event loop by gather is deterministic. #434

Closed JustinTArthur closed 7 years ago

JustinTArthur commented 7 years ago

Resolves #432. Likely a wee bit slower in most Python implementations as before this change, the interpreter had no obligation to order when uniqueness was established via a simple construction of a set. However, the programmer can now achieve a predictable order of scheduling (and possibly execution) of their awaitables or coroutines.

JustinTArthur commented 7 years ago

433 is an alternative to this.