runtime: add better error message when spawning blocking threads (#4398)

This commit is contained in:
Matthew Pomes 2022-01-12 12:49:57 -06:00 committed by GitHub
parent e255a265d3
commit 089eeae24b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")
} }
} }