Skip to main content

SpawnCocoonIoForwarders

Function SpawnCocoonIoForwarders 

Source
fn SpawnCocoonIoForwarders(Process: &mut Child)
Expand description

Spawn background tasks that forward Cocoon’s stdout and stderr into Mountain’s dev-log. Tagged lines ([DEV:<TAG>] …) are re-emitted under the matching tag; plain lines stay under cocoon.

Uses tauri::async_runtime::spawn (not bare tokio::spawn) so the tasks live on the same runtime handle that Tauri owns, ensuring they are polled even while the calling async task is awaiting elsewhere.