wasmtime_component_linker_instantiate_async function

  1. @Native<Pointer<wasmtime_call_future_t> Function(Pointer<wasmtime_component_linker_t> linker, Pointer<wasmtime_context_t> context, Pointer<wasmtime_component_t> component, Pointer<wasmtime_component_instance_t> instance_out, Pointer<Pointer<wasmtime_error_t>> error_ret)>(ffi.Pointer<wasmtime_component_linker_t>, ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_component_t>, ffi.Pointer<wasmtime_component_instance_t>, ffi.Pointer<ffi.Pointer<wasmtime_error_t>>)>()
Pointer<wasmtime_call_future_t> wasmtime_component_linker_instantiate_async(
  1. Pointer<wasmtime_component_linker_t> linker,
  2. Pointer<wasmtime_context_t> context,
  3. Pointer<wasmtime_component_t> component,
  4. Pointer<wasmtime_component_instance_t> instance_out,
  5. Pointer<Pointer<wasmtime_error_t>> error_ret,
)

\brief Instantiate a component in \p linker asynchronously.

This is the same as #wasmtime_component_linker_instantiate except that it is asynchronous. This is only compatible with stores associated with an asynchronous config.

The result is a future that is owned by the caller and must be deleted via #wasmtime_call_future_delete.

All parameters to this function must be kept alive and not modified until the returned #wasmtime_call_future_t is deleted.

\param linker the linker to instantiate with \param context the store context \param component the component to instantiate \param instance_out where to store the returned instance \param error_ret where to store the returned error

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_call_future_t> Function(
    ffi.Pointer<wasmtime_component_linker_t>,
    ffi.Pointer<wasmtime_context_t>,
    ffi.Pointer<wasmtime_component_t>,
    ffi.Pointer<wasmtime_component_instance_t>,
    ffi.Pointer<ffi.Pointer<wasmtime_error_t>>,
  )
>()
external ffi.Pointer<wasmtime_call_future_t>
wasmtime_component_linker_instantiate_async(
  ffi.Pointer<wasmtime_component_linker_t> linker,
  ffi.Pointer<wasmtime_context_t> context,
  ffi.Pointer<wasmtime_component_t> component,
  ffi.Pointer<wasmtime_component_instance_t> instance_out,
  ffi.Pointer<ffi.Pointer<wasmtime_error_t>> error_ret,
);