source:
frontend/node_modules/fork-ts-checker-webpack-plugin/lib/utils/async/pool.d.ts
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 244 bytes | |
| Line | |
|---|---|
| 1 | declare type Task<T> = (done: () => void) => Promise<T>; |
| 2 | interface Pool { |
| 3 | submit<T>(task: Task<T>): Promise<T>; |
| 4 | size: number; |
| 5 | readonly pending: number; |
| 6 | } |
| 7 | declare function createPool(size: number): Pool; |
| 8 | export { Pool, createPool }; |
Note:
See TracBrowser
for help on using the repository browser.
