Type alias Processor<T, R, N>

Processor<T, R, N>: ((job, token?) => Promise<R>)

Type Parameters

  • T = any
  • R = any
  • N extends string = string

Type declaration

    • (job, token?): Promise<R>
    • An async function that receives Jobs and handles them.

      Parameters

      • job: Job<T, R, N>
      • Optional token: string

      Returns Promise<R>

Generated using TypeDoc