blob: 21cdeaf2f64db3348a17e76f698e37afd1bfa0bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
// tslint:disable:no-any
export type Promiser<T = any> = (args: any) => PromiseLike<T>;
export class PromisePriorityQueue {
public constructor(concurrent?: number, least?: number);
public enqueue<T = any>(priority: number, promiser: Promiser<T>, binding: any, ...argv: any[]): Promise<T>;
public readonly size: number;
}
export const queue: PromisePriorityQueue;
|