We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd0477 commit 84a8bcaCopy full SHA for 84a8bca
src/util/tokio.rs
@@ -11,9 +11,6 @@ pub fn block_on_tokio<T>(fut: impl Future<Output = io::Result<T>>) -> io::Result
11
if let Ok(handle) = Handle::try_current() {
12
handle.block_on(fut)
13
} else {
14
- tokio::runtime::Builder::new_current_thread()
15
- .enable_all()
16
- .build()?
17
- .block_on(fut)
+ tokio::runtime::Runtime::new()?.block_on(fut)
18
}
19
0 commit comments