@flowscripter/pluggable-io-framework
    Preparing search index...

    Class ConcurrencyLimiter

    A semaphore bounding how many run() callbacks execute at once. A single shared instance (see defaultConcurrencyLimiter) enforces its cap globally across concurrently invoked copy()/move() calls, not just within one call - two folder copies started at the same time and sharing a limiter will never together exceed its maxConcurrency.

    Index
    • Type Parameters

      • T

      Parameters

      • fn: () => Promise<T>

      Returns Promise<T>

    • Parameters

      • maxConcurrency: number

      Returns void