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

Flesh out LocalPoolHandle #4661

Closed
Darksonn opened this issue May 8, 2022 · 1 comment · Fixed by #4680
Closed

Flesh out LocalPoolHandle #4661

Darksonn opened this issue May 8, 2022 · 1 comment · Fixed by #4680
Labels
A-tokio-util Area: The tokio-util crate M-task Module: tokio/task

Comments

@Darksonn
Copy link
Contributor

Darksonn commented May 8, 2022

The LocalPoolHandle type is currently very simple. It would be nice to see the following functionality added:

  1. Spawning a future on a specific thread.
  2. Spawning a copy of a future on every thread.
  3. A function that returns the number of threads.

The documentation should also be improved to explain that you can use spawn_local, and that this will spawn the given future on the same thread. It should also be mentioned that the handle can be cloned.

@Darksonn Darksonn added E-help-wanted Call for participation: Help is requested to fix this issue. A-tokio-util Area: The tokio-util crate M-task Module: tokio/task E-medium Call for participation: Experience needed to fix: Medium / intermediate labels May 8, 2022
@b-naber
Copy link
Contributor

b-naber commented May 9, 2022

I can try to work on this.

@Darksonn Darksonn removed E-help-wanted Call for participation: Help is requested to fix this issue. E-medium Call for participation: Experience needed to fix: Medium / intermediate labels Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio-util Area: The tokio-util crate M-task Module: tokio/task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants