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

asynq_to_async: handle edge case - empty list of tasks #137

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

SoulTch
Copy link
Contributor

@SoulTch SoulTch commented Mar 13, 2024

Previously, I replaced asyncio.gather with asyncio.wait. However asyncio.wait throws an error when provided with an empty list of tasks whereas asyncio.gather doesn't.

Fix that case and added a test case.

@dkang-quora dkang-quora merged commit 169ee54 into quora:master Mar 13, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants