mise API - v0.0.0
    Preparing search index...

    Function sinkScope_run

    • 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.

      Type Parameters

      • T

      Parameters

      • sink: OutputSink

        The sink to scope.

      • fn: () => Promise<T>

        The work to run within the scope.

      Returns Promise<T>

      Whatever fn resolves to.