Options
All
  • Public
  • Public/Protected
  • All
Menu

Class default<Job, Result>

Type parameters

  • Job

  • Result

Hierarchy

  • default

Index

Constructors

  • new default<Job, Result>(): default<Job, Result>

Properties

currentSeq: number

Accessors

  • get length(): number

Methods

  • acquire(count: number, consume: (jobs: Job[]) => Promise<JobResponse<Job, Result>[]>): Promise<undefined | JobResponse<Job, Result>[]>
  • acquireAt(idx: number, count: number, consume: ConsumeJobsFn<Job, Result>): Promise<undefined | JobResponse<Job, Result>[]>
  • onJobs(listener: (queue: default<Job, Result>) => void): void
  • peekAt(idx: number): undefined | Job
  • removeJobsListener(listenerToRemove: (queue: default<Job, Result>) => void): boolean

Generated using TypeDoc