@cloud-copilot/job
Version:
Async job runners with defined worker pools
7 lines • 393 B
TypeScript
import { Job, JobResult, Logger } from './job.js';
/**
* Runs the given jobs with up to `concurrency` tasks in flight at once.
* Resolves with an array of results in the same order as the jobs.
*/
export declare function runJobs<T = void, P = Record<string, unknown>>(jobs: Job<T, P>[], concurrency: number, logger: Logger): Promise<JobResult<T, P>[]>;
//# sourceMappingURL=runJobs.d.ts.map