Cell API
    Preparing search index...

    Class Limiter<T>

    A helper to queue N promises and run them all with a max degree of parallelism. The helper ensures that at any time no more than M promises are running at the same time.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Implements

    Index
    • get onDrained(): Event<void>

      An event that fires when every promise in the queue has started to execute. In other words: no work is pending to be scheduled.

      This is NOT an event that signals when all promises have finished though.

      Returns Event<void>