/** * Runs an array of asynchronous functions in parallel with a specified concurrency limit. * @template T The type of the resolved value of the promises returned by the functions. * * @param {(() => Promise)[]} functionsToRun - An array of functions that return promises. * Each function is expected to return a promise when called. * * @param {number} [limit=100] - The maximum number of promises that can be executed concurrently. * If the limit is set to 0 or less, all functions will run concurrently without any limit. */ export default function runInParallel(functionsToRun: (() => Promise)[], limit?: number): Promise[]>;