/
eb
/
Surf
Обзор
Документация
Войти
/
eb
/
Surf
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/fastq/index.d.ts
24 строки
646 B
EvgeniyBudaev
Initial commit
17 фев 2020, 09:02
17 фев 2020, 09:02
bb6f06f
Код
Авторство
О чём код?
declare function fastq<T>(context: T, worker: fastq.worker<T>, concurrency: number): fastq.queue declare function fastq<T>(worker: fastq.worker<T>, concurrency: number): fastq.queue declare namespace fastq { type worker<T> = (this: T, arg: any, cb: () => void) => void type done = (err: Error, result: any) => void interface queue { push(task: any, done: done): void unshift(task: any, done: done): void pause(): any resume(): any idle(): boolean length(): number kill(): any killAndDrain(): any concurrency: number drain(): any empty: () => void saturated: () => void } } export = fastq