Skip to main content

destroy_timeout

Function destroy_timeout 

Source
pub fn destroy_timeout(id: u64, timeout_ns: u64) -> Option<WorldRecord>
Expand description

Destroys a world, waiting at most timeout_ns for its vCPU tasks.

Returns None when the world does not exist, is already closing, or when a vCPU task did not finish within the budget. In the timeout case the world stays in the registry with closing set, so its memory is not freed while a task could still reference it; the caller should treat that as a defect and report it.