wasmtime_config_async_stack_size_set function
- @Native<Void Function(Pointer<
wasm_config_t> , Size)>(ffi.Pointer<wasm_config_t>, ffi.Size)>()
- Pointer<
wasm_config_t> arg0, - int arg1
\brief Configures the size of the stacks used for asynchronous execution.
This setting configures the size of the stacks that are allocated for asynchronous execution.
The value cannot be less than max_wasm_stack.
The amount of stack space guaranteed for host functions is async_stack_size - max_wasm_stack, so take care not to set these two values close to one another; doing so may cause host functions to overflow the stack and abort the process.
By default this option is 2 MiB.
For more information see the Rust documentation at https://docs.wasmtime.dev/api/wasmtime/struct.Config.html#method.async_stack_size
Implementation
@ffi.Native<ffi.Void Function(ffi.Pointer<wasm_config_t>, ffi.Size)>()
external void wasmtime_config_async_stack_size_set(
ffi.Pointer<wasm_config_t> arg0,
int arg1,
);