UNPKG

@eclipse-scout/core

Version:
26 lines 1.33 kB
/// <reference types="jquery" /> import { PromiseCreator } from '../index'; export declare const promises: { /** * Use a promise creator to create a promise and wait until each promise has been done before the next * promise is created and executed. * * @param {PromiseCreator} promiseCreator this function */ oneByOne(promiseCreator: PromiseCreator): JQuery.Promise<any>; /** * Use a promise creator to create a group of promises and wait until the whole group has been executed * before creating and executing promises for the next group. */ groupwise(groupSize: number, promiseCreator: PromiseCreator): JQuery.Promise<any>; /** * Use a promise creator to try to keep a fixed size pool of promises of working. As soon as one * promise is finished, the next promise will be created and executed (as a long as there are more * promises available). * * @param maxPoolSize defines how many promises should be created and executed at most in parallel. * @param timeout specifies a timeout to wait for until the next promise will be started. If not specified, no timeout (=0) is used). */ parallel(maxPoolSize: number, promiseCreator: PromiseCreator, timeout?: number): JQuery.Promise<any>; }; //# sourceMappingURL=promises.d.ts.map