Function wasmer_wasix::syscalls::wasi::poll_oneoff::poll_oneoff_internal
source · pub(crate) fn poll_oneoff_internal<'a, M: MemorySize, After>(
ctx: FunctionEnvMut<'a, WasiEnv>,
subs: Vec<(Option<Fd>, i16, Subscription)>,
process_events: After,
) -> Result<Errno, WasiError>
Expand description
§poll_oneoff()
Concurrently poll for a set of events
Inputs:
const __wasi_subscription_t *in
The events to subscribe to__wasi_event_t *out
The events that have occuredu32 nsubscriptions
The number of subscriptions and the number of events
Output:
u32 nevents
The number of events seen