rewrite wasi-tokio as just an task::block_in_place wrapper on cap-std-sync
This commit is contained in:
@@ -78,7 +78,10 @@ pub async fn poll_oneoff<'a>(poll: &mut Poll<'a>) -> Result<(), Error> {
|
||||
}
|
||||
}
|
||||
if let Some(Some(remaining_duration)) = duration {
|
||||
tokio::time::timeout(remaining_duration, futures).await??;
|
||||
match tokio::time::timeout(remaining_duration, futures).await {
|
||||
Ok(r) => r?,
|
||||
Err(_deadline_elapsed) => {}
|
||||
}
|
||||
} else {
|
||||
futures.await?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user