UNPKG

@promptbook/azure-openai

Version:

Promptbook: Run AI apps in plain human language across multiple models and platforms

21 lines (20 loc) 720 B
import type { Promisable } from 'type-fest'; type ForEachAsyncOptions = { /** * Maximum number of tasks running in parallel * * @default Infinity */ readonly maxParallelCount?: number; }; /** * Async version of Array.forEach * * @param array - Array to iterate over * @param options - Options for the function * @param callbackfunction - Function to call for each item * @public exported from `@promptbook/utils` * @deprecated [🪂] Use queues instead */ export declare function forEachAsync<TItem>(array: ReadonlyArray<TItem>, options: ForEachAsyncOptions, callbackfunction: (value: TItem, index: number, array: ReadonlyArray<TItem>) => Promisable<void>): Promise<void>; export {};