Update dependencies
This commit is contained in:
parent
da98bfba8c
commit
b7c6a14571
2 changed files with 7 additions and 3 deletions
|
|
@ -6,11 +6,15 @@ use std::{
|
|||
thread,
|
||||
time::Duration,
|
||||
};
|
||||
use tokio::runtime::Builder;
|
||||
|
||||
pub use async_trait::async_trait;
|
||||
|
||||
pub fn run<F: Future>(future: F) -> F::Output {
|
||||
tokio::runtime::Runtime::new().unwrap().block_on(future)
|
||||
Builder::new_current_thread()
|
||||
.build()
|
||||
.unwrap()
|
||||
.block_on(future)
|
||||
}
|
||||
pub use tokio::try_join;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue