Skip to main content

spawn

Function spawn 

Source
pub fn spawn(
    exe: &Path,
    payload: &SpawnPayload,
    node: NodeId,
    events: FrameSink,
) -> Result<Subagent>
Expand description

Spawn a subagent that re-execs exe (normally std::env::current_exe()), delivering payload. Upward messages are handed to events tagged with node.