wasmtime_linker_instantiate_async function

  1. @Native<Pointer<wasmtime_call_future_t> Function(Pointer<wasmtime_linker_t> linker, Pointer<wasmtime_context_t> store, Pointer<wasmtime_module_t> module, Pointer<wasmtime_instance_t> instance, Pointer<Pointer<wasm_trap_t>> trap_ret, Pointer<Pointer<wasmtime_error_t>> error_ret)>(ffi.Pointer<wasmtime_linker_t>, ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_module_t>, ffi.Pointer<wasmtime_instance_t>, ffi.Pointer<ffi.Pointer<wasm_trap_t>>, ffi.Pointer<ffi.Pointer<wasmtime_error_t>>)>()
Pointer<wasmtime_call_future_t> wasmtime_linker_instantiate_async(
  1. Pointer<wasmtime_linker_t> linker,
  2. Pointer<wasmtime_context_t> store,
  3. Pointer<wasmtime_module_t> module,
  4. Pointer<wasmtime_instance_t> instance,
  5. Pointer<Pointer<wasm_trap_t>> trap_ret,
  6. Pointer<Pointer<wasmtime_error_t>> error_ret,
)

\brief Instantiates a #wasm_module_t with the items defined in this linker for an async store.

This is the same as #wasmtime_linker_instantiate but used for async stores (which requires functions are called asynchronously). The returning #wasmtime_call_future_t must be polled using #wasmtime_call_future_poll, and is owned and must be deleted using #wasmtime_call_future_delete.

The trap_ret and error_ret pointers may not be NULL and the returned memory is owned by the caller.

All arguments to this function must outlive the returned future and be unmodified until the future is deleted.

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_call_future_t> Function(
    ffi.Pointer<wasmtime_linker_t>,
    ffi.Pointer<wasmtime_context_t>,
    ffi.Pointer<wasmtime_module_t>,
    ffi.Pointer<wasmtime_instance_t>,
    ffi.Pointer<ffi.Pointer<wasm_trap_t>>,
    ffi.Pointer<ffi.Pointer<wasmtime_error_t>>,
  )
>()
external ffi.Pointer<wasmtime_call_future_t> wasmtime_linker_instantiate_async(
  ffi.Pointer<wasmtime_linker_t> linker,
  ffi.Pointer<wasmtime_context_t> store,
  ffi.Pointer<wasmtime_module_t> module,
  ffi.Pointer<wasmtime_instance_t> instance,
  ffi.Pointer<ffi.Pointer<wasm_trap_t>> trap_ret,
  ffi.Pointer<ffi.Pointer<wasmtime_error_t>> error_ret,
);