Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Batch

Package version

Batch provides basic parallel execution with concurrency limits. Will stop execute left operations when one of the executed operation throws an error. But Batch cannot cancel ongoing operations, you need to cancel them by yourself.

export

Hierarchy

  • Batch

Index

Constructors

Methods

Constructors

constructor

  • new Batch(concurrency?: number): Batch
  • Creates an instance of Batch.

    memberof

    Batch

    Parameters

    • Default value concurrency: number = 5

    Returns Batch

Methods

addOperation

do

  • do(): Promise<void>
  • Start execute operations in the queue.

    memberof

    Batch

    Returns Promise<void>

Generated using TypeDoc