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

add the ability to name the thread used by start_blocking_portal, and give it a default name #818

Open
1 task done
graingert opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@graingert
Copy link
Collaborator

Things to check first

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

Feature description

I'd like to be able to call anyio.to_thread.start_blocking_portal(..., thread_name="example name") I'd also like a default name so I know what's going on in threading.enumerate()

Use case

I was porting a bespoke run-trio-in-thread code to BlockingPortal, the original code named their thread - but with a blocking portal I don't have that ability

@graingert graingert added the enhancement New feature or request label Oct 29, 2024
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

No branches or pull requests

1 participant