Skip to main content

spawn

Function spawn 

Source
pub fn spawn(config: SpawnConfig) -> Result<SpawnHandles, SpawnError>
Expand description

Spawn a child under a PTY. Returns:

  • PtyHandle for writing keystrokes + resizing.
  • Arc<ArcSwap<TerminalSnapshot>> for the renderer to .load() each frame.
  • Reader task handle (aborted when the caller drops it).