Type Parameters

  • T extends Record<any, any>

Hierarchy

  • IJobQueue

Implemented by

Properties

Methods

Properties

addJob: ((job: Job<T>) => Promise<void>)

Type declaration

    • (job: Job<T>): Promise<void>
    • Parameters

      Returns Promise<void>

addJobs: ((jobs: Job<T>[]) => Promise<void>)

Type declaration

    • (jobs: Job<T>[]): Promise<void>
    • Parameters

      • jobs: Job<T>[]

      Returns Promise<void>

init: ((workersByJob: Record<string, Worker<T>>) => Promise<void>)

Type declaration

    • (workersByJob: Record<string, Worker<T>>): Promise<void>
    • Parameters

      • workersByJob: Record<string, Worker<T>>

      Returns Promise<void>

stop: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

updateJob: ((jobId: string, data: T) => Promise<void>)

Type declaration

    • (jobId: string, data: T): Promise<void>
    • Parameters

      • jobId: string
      • data: T

      Returns Promise<void>

Methods