mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +02:00
set Runtime thread pool name prefix (#232)
This commit is contained in:
committed by
Carl Lerche
parent
d1046db735
commit
b7f4e337be
@@ -234,6 +234,7 @@ impl Runtime {
|
|||||||
let handle = reactor.handle().clone();
|
let handle = reactor.handle().clone();
|
||||||
|
|
||||||
let pool = threadpool::Builder::new()
|
let pool = threadpool::Builder::new()
|
||||||
|
.name_prefix("tokio-runtime-worker-")
|
||||||
.around_worker(move |w, enter| {
|
.around_worker(move |w, enter| {
|
||||||
::tokio_reactor::with_default(&handle, enter, |_| {
|
::tokio_reactor::with_default(&handle, enter, |_| {
|
||||||
w.run();
|
w.run();
|
||||||
|
|||||||
Reference in New Issue
Block a user