Skip to main content

get_sandbox_id

Function get_sandbox_id 

Source
pub fn get_sandbox_id(corpus_id: i32, sandboxes: &SandboxCache) -> Option<i32>
Expand description

Getter for a corpus’s sandbox id from the shared SandboxCache, with no DB access — the sink’s read on the result path. An absent entry yields None (treat as an ordinary corpus); the ventilator always memoises a task’s corpus on dispatch, before its result can return, so the entry is present by the time the sink looks.