mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-09 00:00:08 +02:00
runtime: add better error message when spawning blocking threads (#4398)
This commit is contained in:
@@ -244,7 +244,7 @@ impl Spawner {
|
|||||||
rt.blocking_spawner.inner.run(id);
|
rt.blocking_spawner.inner.run(id);
|
||||||
drop(shutdown_tx);
|
drop(shutdown_tx);
|
||||||
})
|
})
|
||||||
.unwrap()
|
.expect("OS can't spawn a new worker thread")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user