Skip to content

Commit 61fc2ba

Browse files
authored
Merge pull request #809 from async-rs/fix/recursive-block-2
fix(rt): use task::block_on on spawned threads
2 parents e12cf80 + 5a1a681 commit 61fc2ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub static RUNTIME: Lazy<Runtime> = Lazy::new(|| {
2727
for _ in 0..thread_count {
2828
thread::Builder::new()
2929
.name(thread_name.clone())
30-
.spawn(|| smol::run(future::pending::<()>()))
30+
.spawn(|| crate::task::block_on(future::pending::<()>()))
3131
.expect("cannot start a runtime thread");
3232
}
3333
Runtime {}

0 commit comments

Comments
 (0)