Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Queue

Index

Constructors

constructor

Properties

Private Readonly defaultQueue

defaultQueue: string = "default"

Private mMaxConcurrentRequests

mMaxConcurrentRequests: number = Constants.MAX_SIGNED_32BIT_NUMBER

Private mQueue

mQueue: {}

Type declaration

Private mQueueTimeout

mQueueTimeout: number = Constants.MAX_SIGNED_32BIT_NUMBER

Methods

Private createQueue

  • createQueue(name?: string): void

Private dequeue

  • dequeue(queue: string): Promise<void>

enqueue

  • enqueue<T>(promiseFunction: Function, poolId?: string): Promise<T>
  • Add a promise to the queue

    Type parameters

    • T

    Parameters

    • promiseFunction: Function

      The promise, bound with all arguments, to execute on its turn in the queue.

    • Optional poolId: string

      The queue pool that the promise should execute against

    Returns Promise<T>

    The promise of the promiseFunction

setThrottlingOptions

Generated using TypeDoc