Skip to main content

before_spawn

Function before_spawn 

Source
pub fn before_spawn(settings: &Settings) -> Result<Option<String>>
Expand description

Called before a tool is spawned. For the first tool of a heavy check, waits for a slot, showing the wait in the check’s row. Returns the HELD_ENV value the tool exports when this thread runs under a slot: held:<lease> of the lease this check holds, else of the slot parked between two heavy gates, read under the same lock that found it (t15 phase 2); None when no slot is held. An Err when the busy policy deferred the check, so the caller does not spawn.