various fixes to the design of Poll

This commit is contained in:
Pat Hickey
2021-04-30 15:36:56 -07:00
parent b7efcbe80f
commit 7f34ccb909
5 changed files with 11 additions and 11 deletions

View File

@@ -849,7 +849,7 @@ impl wasi_unstable::WasiUnstable for WasiCtx {
}
}
self.sched.poll_oneoff(&poll).await?;
self.sched.poll_oneoff(&mut poll).await?;
let results = poll.results();
let num_results = results.len();

View File

@@ -1047,7 +1047,7 @@ impl wasi_snapshot_preview1::WasiSnapshotPreview1 for WasiCtx {
poll.subscribe_write(f.deref_mut(), *ud);
}
self.sched.poll_oneoff(&poll).await?;
self.sched.poll_oneoff(&mut poll).await?;
let results = poll.results();
let num_results = results.len();