@kayahr/signal
    Preparing search index...

    Function batch

    • Runs a function while deferring scheduler flushing until the outermost batch completes.

      Jobs scheduled inside the batch are still queued immediately, but eager computations are only drained once after the batch finishes.

      Type Parameters

      • T

      Parameters

      • func: () => T

        The function to execute inside the batch.

      Returns T

      The value returned by func.