Function wasmer_wasix::syscalls::wasi::poll_oneoff::poll_oneoff

source ·
pub fn poll_oneoff<M: MemorySize + 'static>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    in_: WasmPtr<Subscription, M>,
    out_: WasmPtr<Event, M>,
    nsubscriptions: M::Offset,
    nevents: WasmPtr<M::Offset, M>,
) -> 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 occured
  • u32 nsubscriptions The number of subscriptions and the number of events

Output:

  • u32 nevents The number of events seen