upgrade tokio to latest version(v0.3)
This commit is contained in:
parent
e6131783e9
commit
eacb2e913f
4 changed files with 7 additions and 5 deletions
|
|
@ -16,6 +16,7 @@ impl Executor for Tokio {
|
|||
}
|
||||
|
||||
fn enter<R>(&self, f: impl FnOnce() -> R) -> R {
|
||||
tokio::runtime::Runtime::enter(self, f)
|
||||
let _guard = tokio::runtime::Runtime::enter(self);
|
||||
f()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue