wasmtime_context_epoch_deadline_async_yield_and_update function

  1. @Native<Pointer<wasmtime_error_t> Function(Pointer<wasmtime_context_t>, Uint64)>(ffi.Pointer<wasmtime_context_t>, ffi.Uint64)>()
Pointer<wasmtime_error_t> wasmtime_context_epoch_deadline_async_yield_and_update(
  1. Pointer<wasmtime_context_t> context,
  2. int delta
)

\brief Configures epoch-deadline expiration to yield to the async caller and the update the deadline.

This is only suitable with use of a store associated with an async config because only then are futures used and yields are possible.

See the Rust documentation for more: https://docs.wasmtime.dev/api/wasmtime/struct.Store.html#method.epoch_deadline_async_yield_and_update

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_error_t> Function(
    ffi.Pointer<wasmtime_context_t>,
    ffi.Uint64,
  )
>()
external ffi.Pointer<wasmtime_error_t>
wasmtime_context_epoch_deadline_async_yield_and_update(
  ffi.Pointer<wasmtime_context_t> context,
  int delta,
);