sdk-python icon indicating copy to clipboard operation
sdk-python copied to clipboard

[Feature Request] Investigate asyncio.as_completed and asyncio.wait usage of `set` as non-deterministic

Open cretz opened this issue 9 months ago • 1 comments

Describe the solution you'd like

asyncio.as_completed and asyncio.wait may be non-deterministic in their use of set. See https://github.com/python/cpython/blob/v3.12.3/Lib/asyncio/tasks.py#L609 and https://github.com/python/cpython/blob/v3.12.3/Lib/asyncio/tasks.py#L458. See if anything can be done and if not, document that they are dangerous and warn on their use. May need to provide deterministic alternatives.

cretz avatar May 06 '24 12:05 cretz

See also #429

cretz avatar May 06 '24 13:05 cretz