At what point does the Tokio runtime know when to spawn more threads?

Using this feature in Cargo.toml:

tokio = { version = "0.2.11", features = ["rt-threaded"] }

I can then fire-up a threaded runtime:

    let mut threaded_rt = runtime::Builder::new()


My question is: How does tokio know when to begin using the other threads in the ThreadPool? Does this happen when a single event loop begins to have more than a single Poll::Ready status after polling all the futures?

Also, are there multiple event loops running, or just one primary event loop?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.