mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-10 19:54:57 +02:00
9 lines
244 B
TypeScript
9 lines
244 B
TypeScript
declare type Task<T> = (done: () => void) => Promise<T>;
|
|
interface Pool {
|
|
submit<T>(task: Task<T>): Promise<T>;
|
|
size: number;
|
|
readonly pending: number;
|
|
}
|
|
declare function createPool(size: number): Pool;
|
|
export { Pool, createPool };
|