Skip to content

promiseAllAsyncFnsSequentially<T>

Executes async functions sequentially.

Import:

import { promiseAllAsyncFnsSequentially } from 'obsidian-dev-utils/async';

Signature:

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

Parameters:

ParameterTypeDescription
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.