Function context_destroy

Source
pub fn context_destroy(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    target_context_id: u64,
) -> Result<Errno, WasiError>
Expand description

Destroy a suspended or terminated context

After a successful call its identifier becomes invalid and its resources are released. Destroying an already deleted context is a no-op.

Refer to the wasix-libc wasix/context.h header for authoritative documentation.