UNPKG

@huggingface/hub

Version:

Utilities to interact with the Hugging Face hub

11 lines 430 B
/** * Execute queue of promises in a streaming fashion. * * Optimized for streaming: * - Expects an iterable as input * - Does not return a list of all results * * Inspired by github.com/rxaviers/async-pool */ export declare function promisesQueueStreaming<T>(factories: AsyncIterable<() => Promise<T>> | Iterable<() => Promise<T>>, concurrency: number): Promise<void>; //# sourceMappingURL=promisesQueueStreaming.d.ts.map