Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TaskQueue

Hierarchy

  • TaskQueue

Index

Constructors

constructor

  • new TaskQueue(__namedParameters?: { maxParallelNum?: undefined | number; taskInterval?: undefined | number }): TaskQueue
  • Parameters

    • __namedParameters: { maxParallelNum?: undefined | number; taskInterval?: undefined | number } = ...
      • Optional maxParallelNum?: undefined | number
      • Optional taskInterval?: undefined | number

    Returns TaskQueue

Properties

Private maxParallelNum

maxParallelNum: number = 1

Private Readonly queue

queue: Queue<Task> = ...

Private taskInterval

taskInterval: number = 0

Private workers

workers: TaskWorker[] = ...

Accessors

runningNum

  • get runningNum(): number

Methods

destroy

  • destroy(): void

pause

  • pause(): void

push

  • push(task: Task): void

start

  • start(): void

Generated using TypeDoc