Skip to content

promiseAllAsyncFnsSequentially<T>

Executes async functions sequentially.

Import:

import { promiseAllAsyncFnsSequentially } from '@mnaoumov/typescript-lib/async';

Signature:

function promiseAllAsyncFnsSequentially(asyncFns: (() => Promisable<T>)[]): Promise<T[]>

Parameters:

Parameter Type Description
asyncFns (() => Promisable<T>)[] The async functions to execute sequentially.

Returns: Promise<T[]> — A Promise that resolves with an array of the results of the async functions.