mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-19 00:00:09 +02:00
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.
40 lines
917 B
TOML
40 lines
917 B
TOML
[package]
|
|
name = "tokio-threadpool"
|
|
version = "0.1.2"
|
|
documentation = "https://docs.rs/tokio-threadpool"
|
|
repository = "https://github.com/tokio-rs/tokio"
|
|
homepage = "https://github.com/tokio-rs/tokio"
|
|
license = "MIT"
|
|
authors = ["Carl Lerche <[email protected]>"]
|
|
description = """
|
|
A task scheduler backed by a work-stealing thread pool.
|
|
"""
|
|
keywords = ["futures", "tokio"]
|
|
categories = ["concurrency", "asynchronous"]
|
|
|
|
[dependencies]
|
|
tokio-executor = { version = "0.1.2", path = "../tokio-executor" }
|
|
futures = "0.1.19"
|
|
crossbeam-deque = "0.3"
|
|
num_cpus = "1.2"
|
|
rand = "0.4"
|
|
log = "0.4"
|
|
|
|
# Futures 0.2 integration
|
|
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 = [
|
|
"futures2",
|
|
"tokio-executor/unstable-futures",
|
|
]
|
|
default = []
|