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

examples: add futures executor threadpool #3198

Merged
merged 11 commits into from Dec 22, 2020
Merged

examples: add futures executor threadpool #3198

merged 11 commits into from Dec 22, 2020

Conversation

carlosb1
Copy link
Contributor

closes #2774

@Darksonn Darksonn added A-tokio Area: The main tokio crate C-maintenance Category: PRs that clean code up or issues documenting cleanup. M-runtime Module: tokio/runtime labels Dec 6, 2020
Comment on lines 39 to 41
// Spawn tokio runtime on a single background thread
// enabling IO and timers.
let rt = tokio::runtime::Builder::new_current_thread()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be a new_multi_thread with one worker thread if we want a background thread.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!, sorry I didn't see it

carlosb1 and others added 3 commits December 17, 2020 20:58
Co-authored-by: Alice Ryhl <alice@ryhl.io>
…losb1/tokio into 2774_add_futures_executor_threadpool
examples/Cargo.toml Outdated Show resolved Hide resolved
@Darksonn Darksonn merged commit 7d28e4c into tokio-rs:master Dec 22, 2020
@Darksonn Darksonn changed the title 2774 add futures executor threadpool examples: add futures executor threadpool Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-maintenance Category: PRs that clean code up or issues documenting cleanup. M-runtime Module: tokio/runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

examples: Add a futures::executor::ThreadPool example
2 participants