Function withBatch

  • Wrap a specified action in mafia's batchOpen and batchClose

    Type Parameters

    • T

    Parameters

    • action: (() => T)

      Action to perform while using mafia's batching feature

        • (): T
        • Returns T

    Returns T

    The return value of the action