Options
All
  • Public
  • Public/Protected
  • All
Menu

Asynchronous pool Used to ensure that the number of asynchronous executions at the same time does not exceed the limit

Hierarchy

  • AsyncPool

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

size

  • get size(): number
  • The number of asynchronous tasks executed in the current pool

    Returns number

Methods

run

  • run<T>(f: () => PromiseLike<T>): Promise<T>
  • Run asynchronous tasks in the pool Task may be delayed to start execution

    Type parameters

    • T

    Parameters

    • f: () => PromiseLike<T>
        • (): PromiseLike<T>
        • Returns PromiseLike<T>

    Returns Promise<T>

Generated using TypeDoc