wasmtime_component_linker_instantiate_async function
- @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< 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>>)>()wasmtime_error_t> >
- 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< error_ret,wasmtime_error_t> >
\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,
);