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

Provide some mechanism for "initializing" processes with to_process #605

Open
1 task done
gwerbin opened this issue Aug 24, 2023 · 0 comments
Open
1 task done

Provide some mechanism for "initializing" processes with to_process #605

gwerbin opened this issue Aug 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@gwerbin
Copy link

gwerbin commented Aug 24, 2023

Things to check first

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

Feature description

The Python standard library provides a mechanism in multiprocessing.Pool to run some code when a process is created, using initializer=.

It would be very useful to have this in AnyIO.

Use case

My use case is setting up logging in each process to send log messages to a QueueHandler, as well as setting log level.

@gwerbin gwerbin added the enhancement New feature or request label Aug 24, 2023
@gwerbin gwerbin changed the title Provide some mechanism for "initializing" Processes with to_process Provide some mechanism for "initializing" processes with to_process Aug 24, 2023
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