Skip to main content

new_tracker

Function new_tracker 

Source
pub fn new_tracker(block_id: &str, agent: bool) -> Arc<dyn TrackerHandle> ⓘ
Expand description

Factory: returns a platform-appropriate tracker handle that will accept the next-spawned process and everything it forks.

Call once per agent pane; reuse the handle across multiple turns of the SubprocessController so children from any turn are all tracked under the same umbrella. agent: the block runs an agent, not a terminal a person types in (see AgentProcessRegistry::ensure_tracker_kind). Every Unix tells them apart; Windows gives both a Job Object.