Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cretz opened this issue May 6, 2024 · 1 comment · Fixed by #533
Labels
enhancement New feature or request

Comments

@cretz
Copy link
Member

cretz commented May 6, 2024

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 cretz added the enhancement New feature or request label May 6, 2024
@cretz
Copy link
Member Author

cretz commented May 6, 2024

See also #429

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant