/**
 * Flowtype definitions for promises
 * Generated by Flowgen from a Typescript Definition
 * Flowgen v1.21.0
 */

declare export function runTasks<T>(
  taskIterator: Iterable<() => Promise<T>>,
  maxConcurrency?: number
): AsyncGenerator<T, void, mixed>;
declare export function PromiseAllLimited<T>(
  tasks: Array<() => Promise<T>>,
  maxConcurrency?: number
): Promise<T[]>;
