Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

PromiseLikeFunction: (() => Promise<unknown>) | Promise<unknown> | (() => unknown) | { then: any }
SeriesOptions: { concurrent?: number; delay?: number; series: PromiseLikeFunction[] }

Type declaration

Variables

default: { all: (options: SeriesOptions) => Promise<unknown[]> } = ...

Type declaration

  • all: (options: SeriesOptions) => Promise<unknown[]>
      • example
           const results = await Series.all({
        series: [
        () => true,
        new Promise((resolve) => resolve(true),
        () => new Promise((resolve) => resolve(true)
        ],
        concurrent: 3,
        delay: 10,
        })

        Parameters

        Returns Promise<unknown[]>

        array of promise results

Generated using TypeDoc