diff options
| author | cjd24 | 2018-04-25 06:41:56 +0100 |
|---|---|---|
| committer | cjd24 | 2018-04-25 06:41:56 +0100 |
| commit | f36deb0245881d8442c31e16572c67e58bb7c451 (patch) | |
| tree | 8e3cc52fe8b8a896be28ff1453ebe5dd82e39b24 /src/ppq/index.d.ts | |
| parent | Edit promise queue to return promises itself (diff) | |
| download | medicine-f36deb0245881d8442c31e16572c67e58bb7c451.tar.gz medicine-f36deb0245881d8442c31e16572c67e58bb7c451.zip | |
Fixing lots of CZI integration things, to prep for server deployment for JH demo
Diffstat (limited to 'src/ppq/index.d.ts')
| -rw-r--r-- | src/ppq/index.d.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ppq/index.d.ts b/src/ppq/index.d.ts index ee12f89..21cdeaf 100644 --- a/src/ppq/index.d.ts +++ b/src/ppq/index.d.ts @@ -1,8 +1,11 @@ // tslint:disable:no-any -type Promiser<T = any> = () => PromiseLike<T>; +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>): Promise<T>; + public enqueue<T = any>(priority: number, promiser: Promiser<T>, binding: any, ...argv: any[]): Promise<T>; + public readonly size: number; } + +export const queue: PromisePriorityQueue; |
