Skip to content

Commit

Permalink
runtime: add better error message when spawning blocking threads (#4398)
Browse files Browse the repository at this point in the history
  • Loading branch information
the10thWiz committed Jan 12, 2022
1 parent e255a26 commit 089eeae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/runtime/blocking/pool.rs
Expand Up @@ -244,7 +244,7 @@ impl Spawner {
rt.blocking_spawner.inner.run(id);
drop(shutdown_tx);
})
.unwrap()
.expect("OS can't spawn a new worker thread")
}
}

Expand Down

0 comments on commit 089eeae

Please sign in to comment.