Browse Source

Actually enable io on tokio runtime

master
Adrian Heine 2 years ago
parent
commit
83c30eca20
  1. 1
      src/async_utils.rs

1
src/async_utils.rs

@ -12,6 +12,7 @@ pub use async_trait::async_trait;
pub fn run<F: Future>(future: F) -> F::Output {
Builder::new_current_thread()
.enable_io()
.build()
.unwrap()
.block_on(future)

Loading…
Cancel
Save