Class Worker<DataType, ResultType, NameType>

See

Worker

Type Parameters

  • DataType = any

  • ResultType = any

  • NameType extends string = string

Hierarchy

  • Worker<DataType, ResultType, NameType>
    • Worker

Constructors

Properties

Methods

Constructors

  • Type Parameters

    • DataType = any

    • ResultType = any

    • NameType extends string = string

    Parameters

    Returns Worker<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: Job<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