Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

12345678910111213141516171819202122232425
  1. declare function fastq<C, T = any, R = any>(context: C, worker: fastq.worker<C, T, R>, concurrency: number): fastq.queue<T, R>
  2. declare function fastq<C, T = any, R = any>(worker: fastq.worker<C, T, R>, concurrency: number): fastq.queue<T, R>
  3. declare namespace fastq {
  4. type worker<C, T = any, R = any> = (this: C, task: T, cb: fastq.done<R>) => void
  5. type done<R = any> = (err: Error | null, result?: R) => void
  6. interface queue<T = any, R = any> {
  7. push(task: T, done: done<R>): void
  8. unshift(task: T, done: done<R>): void
  9. pause(): any
  10. resume(): any
  11. idle(): boolean
  12. length(): number
  13. getQueue(): T[]
  14. kill(): any
  15. killAndDrain(): any
  16. concurrency: number
  17. drain(): any
  18. empty: () => void
  19. saturated: () => void
  20. }
  21. }
  22. export = fastq