pub(crate) fn spawn(
quiet: bool,
prog: ProgressWriter,
) -> (SharedReporter, JoinHandle<ProgressWriter>)Expand description
Start bridging composefs-rs progress events into bootc’s UI.
Returns a [SharedReporter] to pass as PullOptions::progress, and the
[JoinHandle] for the background task driving the UI. The task exits
once every clone of the returned reporter has been dropped (which
happens naturally when the composefs_oci::pull future completes and
drops its PullOptions); callers should .await the join handle after
awaiting the pull to ensure the terminal output is flushed before
proceeding, and to recover the (possibly-mutated) ProgressWriter.