mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
Threadpool blocking (#317)
This patch adds a `blocking` to `tokio-threadpool`. This function serves as a way to annotate sections of code that will perform blocking operations. This informs the thread pool that an additional thread needs to be spawned to replace the current thread, which will no longer be able to process the work queue.
This commit is contained in:
@@ -26,7 +26,10 @@ futures2 = { version = "0.1", path = "../futures2", optional = true }
|
||||
[dev-dependencies]
|
||||
tokio-timer = "0.1"
|
||||
env_logger = "0.4"
|
||||
|
||||
# For comparison benchmarks
|
||||
futures-cpupool = "0.1.7"
|
||||
threadpool = "1.7.1"
|
||||
|
||||
[features]
|
||||
unstable-futures = [
|
||||
|
||||
Reference in New Issue
Block a user