wasmtime_component_func_call_async function
- @Native<Pointer<
wasmtime_call_future_t> Function(Pointer<wasmtime_component_func_t> , Pointer<wasmtime_context_t> , Pointer<wasmtime_component_val_t> , Size, Pointer<wasmtime_component_val_t> , Size, Pointer<Pointer< )>(ffi.Pointer<wasmtime_component_func_t>, ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_component_val_t>, ffi.Size, ffi.Pointer<wasmtime_component_val_t>, ffi.Size, ffi.Pointer<ffi.Pointer<wasmtime_error_t>>)>()wasmtime_error_t> >
- Pointer<
wasmtime_component_func_t> func, - Pointer<
wasmtime_context_t> context, - Pointer<
wasmtime_component_val_t> args, - int args_size,
- Pointer<
wasmtime_component_val_t> results, - int results_size,
- Pointer<
Pointer< error_ret,wasmtime_error_t> >
\brief Invokes \p func with the \p args given, returning the results asynchronously.
This is the same as #wasmtime_component_func_call 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.
Implementation
@ffi.Native<
ffi.Pointer<wasmtime_call_future_t> Function(
ffi.Pointer<wasmtime_component_func_t>,
ffi.Pointer<wasmtime_context_t>,
ffi.Pointer<wasmtime_component_val_t>,
ffi.Size,
ffi.Pointer<wasmtime_component_val_t>,
ffi.Size,
ffi.Pointer<ffi.Pointer<wasmtime_error_t>>,
)
>()
external ffi.Pointer<wasmtime_call_future_t> wasmtime_component_func_call_async(
ffi.Pointer<wasmtime_component_func_t> func,
ffi.Pointer<wasmtime_context_t> context,
ffi.Pointer<wasmtime_component_val_t> args,
int args_size,
ffi.Pointer<wasmtime_component_val_t> results,
int results_size,
ffi.Pointer<ffi.Pointer<wasmtime_error_t>> error_ret,
);