wasmtime_call_future_poll function

  1. @Native<Bool Function(Pointer<wasmtime_call_future_t>)>(ffi.Pointer<wasmtime_call_future_t>)>()
bool wasmtime_call_future_poll(
  1. Pointer<wasmtime_call_future_t> future
)

\brief Executes WebAssembly in the function.

Returns true if the function call has completed. After this function returns true, it should not be called again for a given future.

This function returns false if execution has yielded either due to being out of fuel (see wasmtime_context_fuel_async_yield_interval), or the epoch has been incremented enough (see wasmtime_context_epoch_deadline_async_yield_and_update). The function may also return false if asynchronous host functions have been called, which then calling this function will call the continuation from the async host function.

For more see the information at https://docs.wasmtime.dev/api/wasmtime/struct.Config.html#asynchronous-wasm

Implementation

@ffi.Native<ffi.Bool Function(ffi.Pointer<wasmtime_call_future_t>)>()
external bool wasmtime_call_future_poll(
  ffi.Pointer<wasmtime_call_future_t> future,
);