examples: add futures executor threadpool (#3198)

This commit is contained in:
Carlos B
2020-12-22 20:08:43 +01:00
committed by GitHub
parent 0b83b3b8cc
commit 7d28e4cdbb
3 changed files with 100 additions and 1 deletions
+12 -1
View File
@@ -15,13 +15,15 @@ async-stream = "0.3"
tracing = "0.1"
tracing-subscriber = { version = "0.2.7", default-features = false, features = ["fmt", "ansi", "env-filter", "chrono", "tracing-log"] }
bytes = { git = "https://github.com/tokio-rs/bytes" }
futures = "0.3.0"
futures = { version = "0.3.0", features = ["thread-pool"]}
http = "0.2"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
httparse = "1.0"
time = "0.1"
once_cell = "1.5.2"
[[example]]
name = "chat"
@@ -66,3 +68,12 @@ path = "udp-codec.rs"
[[example]]
name = "tinyhttp"
path = "tinyhttp.rs"
[[example]]
name = "custom-executor"
path = "custom-executor.rs"
[[example]]
name = "custom-executor-tokio-context"
path = "custom-executor-tokio-context.rs"