UNPKG

astx

Version:

super powerful structural search and replace for JavaScript and TypeScript to automate your refactoring

13 lines (12 loc) 301 B
declare type Entry<E> = { elem: E; available: boolean; }; export default class AsyncPool<E> { entries: Entry<E>[]; callbacks: ((entry: Entry<E>) => void)[]; constructor(entries: E[]); get elements(): E[]; run<T>(executor: (elem: E) => Promise<T>): Promise<T>; } export {};