Class WorkerPro<DataType, ResultType, NameType>

See

Worker

Type Parameters

  • DataType = any

  • ResultType = any

  • NameType extends string = string

Hierarchy

  • Worker<DataType, ResultType, NameType>
    • WorkerPro

Constructors

Properties

Methods

Constructors

  • Type Parameters

    • DataType = any

    • ResultType = any

    • NameType extends string = string

    Parameters

    Returns WorkerPro<DataType, ResultType, NameType>

Properties

RateLimitError: (() => Error) = Worker.RateLimitError

Type declaration

    • (): Error
    • Returns Error

Methods

  • Overrides the rate limit so that it becomes active for the given group.

    Parameters

    • job: JobPro<any, any, string>

      Job currently being processed, and whose group we want to rate limit.

    • expireTimeMs: number

      Expire time in ms of this rate limit.

    Returns Promise<void>

Generated using TypeDoc