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

Fix leave_context_asyncio to handle cancelled asyncio task #141

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

dkang-quora
Copy link
Contributor

Fix the error '_asyncio.Task' object has no attribute '_asynq_contexts' when a task is cancelled.

@dkang-quora
Copy link
Contributor Author

In asyncio, it is not possible to identify the primitive asynchronous operations because anyone can create one with asyncio.Future. resume()/pause() are not meaningful in asyncio mode.

AsyncTimer is also changed to measure the wall-time in asyncio mode.

@dkang-quora dkang-quora merged commit 0cbd362 into master Apr 18, 2024
20 checks passed
@JelleZijlstra JelleZijlstra deleted the dkang/timer branch April 18, 2024 08:59
@JelleZijlstra JelleZijlstra removed their request for review May 2, 2024 22:34
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.

2 participants