sb-mig
Version:
CLI to rule the world. (and handle stuff related to Storyblok CMS)
15 lines (14 loc) • 444 B
TypeScript
/**
* Async utility functions
*/
/**
* Delay execution for a specified time
*
* @param time - Time to delay in milliseconds
* @returns Promise that resolves after the delay
*
* @example
* await delay(1000); // Wait 1 second
*/
export declare const delay: (time: number) => Promise<void>;
export declare const mapWithConcurrency: <T, R>(items: T[], concurrency: number, mapper: (item: T, index: number) => Promise<R>) => Promise<R[]>;