wasmtime_context_set_epoch_deadline function

  1. @Native<Void Function(Pointer<wasmtime_context_t>, Uint64)>(ffi.Pointer<wasmtime_context_t>, ffi.Uint64)>()
void wasmtime_context_set_epoch_deadline(
  1. Pointer<wasmtime_context_t> context,
  2. int ticks_beyond_current
)

\brief Configures the relative deadline at which point WebAssembly code will trap or invoke the callback function.

This function configures the store-local epoch deadline after which point WebAssembly code will trap or invoke the callback function.

See also #wasmtime_config_epoch_interruption_set and #wasmtime_store_epoch_deadline_callback.

Implementation

@ffi.Native<ffi.Void Function(ffi.Pointer<wasmtime_context_t>, ffi.Uint64)>()
external void wasmtime_context_set_epoch_deadline(
  ffi.Pointer<wasmtime_context_t> context,
  int ticks_beyond_current,
);