Runs fn with sink installed as the active sink for its async context.
Command execution inside the callback resolves sink_get to sink,
isolated from any other command running concurrently in the same process.
This is how the pipe and redirect paths capture a command's output without
touching the global console, and how a multi-tenant host would scope a
session's sink around one line_execute.
Runs
fnwithsinkinstalled as the active sink for its async context.Command execution inside the callback resolves sink_get to
sink, isolated from any other command running concurrently in the same process. This is how the pipe and redirect paths capture a command's output without touching the global console, and how a multi-tenant host would scope a session's sink around oneline_execute.