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

Allow returning executor handle from builder + calling execute with provided handle #10

Open
jlizen opened this issue Jan 2, 2025 · 0 comments

Comments

@jlizen
Copy link
Owner

jlizen commented Jan 2, 2025

Libraries might want to allow callers to pass in config to load different executor strategies for different use cases.

This means that they need to allow selectively calling strategies per execute, rather than just using a globally configured strategy.

To accomplish this we need:

  • the ability to return a strategy handle in the executor builder instead of installing it
  • the ability to call execute with a handle (execute_with_strategy(), etc)

Also, we want the ability to point to the same strategy that is loaded globally via a handle. Since you don't want to spin up dupe threadpools maybe. I imagine this means that we should add the ability to directly install a strategy. So you first build it, get the handle, and then both pass it to the library as well as to an install function. Might take tweaking the bounds a bit.

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

No branches or pull requests

1 participant