wasmtime_component_func_call_async function

  1. @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<wasmtime_error_t>>)>(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>>)>()
Pointer<wasmtime_call_future_t> wasmtime_component_func_call_async(
  1. Pointer<wasmtime_component_func_t> func,
  2. Pointer<wasmtime_context_t> context,
  3. Pointer<wasmtime_component_val_t> args,
  4. int args_size,
  5. Pointer<wasmtime_component_val_t> results,
  6. int results_size,
  7. Pointer<Pointer<wasmtime_error_t>> error_ret,
)

\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,
);