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>
where After: FnOnce(&FunctionEnvMut<'a, WasiEnv>, Vec<Event>) -> Errno,
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 occured
  • u32 nsubscriptions The number of subscriptions and the number of events

Output:

  • u32 nevents The number of events seen