Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Mix anyio and asyncio code. #622

Closed
1 task done
laker-93 opened this issue Oct 16, 2023 · 0 comments
Closed
1 task done

Mix anyio and asyncio code. #622

laker-93 opened this issue Oct 16, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@laker-93
Copy link

Things to check first

  • I have searched the existing issues and didn't find my feature already requested there

Feature description

I am looking for documentation to advise if mixing anyio and asyncio code is supported. My use case is a large Python 3.8 asyncio code base. I'd like to use anyio in order to incrementally use SC for creating and cancelling tasks. I have run numerous tests using a mix of both and the behaviour looks correct. However I am aware of #374 which occurs when mixing between anyio 3.x and asyncio where the CancelledError does not propagate out of the task group context manager. Are there any other gotchas one should be aware of when using a mix of asyncio and anyio for task management?

Use case

Incrementally converting from normal asyncio task management to Structured Concurrency with anyio.

@laker-93 laker-93 added the enhancement New feature or request label Oct 16, 2023
Repository owner locked and limited conversation to collaborators Oct 17, 2023
@agronholm agronholm converted this issue into discussion #624 Oct 17, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant