mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
fix: use run instead of block_on
This commit is contained in:
parent
1214bc2dee
commit
faea222b9c
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ impl Builder {
|
|||
});
|
||||
|
||||
// Run the future as a task.
|
||||
unsafe { TaskLocalsWrapper::set_current(&wrapped.tag, || smol::block_on(wrapped)) }
|
||||
unsafe { TaskLocalsWrapper::set_current(&wrapped.tag, || smol::run(wrapped)) }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue