fix wasi-tokio

This commit is contained in:
Pat Hickey
2021-07-16 10:28:09 -07:00
parent 4fa4a72328
commit 906182a304

View File

@@ -108,5 +108,7 @@ where
Fut: Future<Output = Result<T, Error>>, Fut: Future<Output = Result<T, Error>>,
T: Send + 'static, T: Send + 'static,
{ {
tokio::task::block_in_place(move || wiggle::run_in_dummy_executor(f())) tokio::task::block_in_place(move || {
wiggle::run_in_dummy_executor(f()).expect("wrapped operation should be synchronous")
})
} }