Skip to main content

SpawnObserver

Type Alias SpawnObserver 

Source
pub type SpawnObserver = Arc<dyn Fn(SpawnInfo) + Send + Sync>;
Expand description

Called with SpawnInfo each time the crate spawns a CLI child.

Must not block: it runs inline on the spawning thread, between spawn and the first read of the child’s output.

Aliased Type§

pub struct SpawnObserver { /* private fields */ }