Method
constructor
(public filter: any, public func: (t: Task) => Promise<void>, public destroyOnError = true, private concurrency = 1)
Source from the content-addressed store, hash-verified
| 39 | notify: (res?: any) => void; |
| 40 | |
| 41 | constructor(public filter: any, public func: (t: Task) => Promise<void>, public destroyOnError = true, private concurrency = 1) { |
| 42 | this.consuming = true; |
| 43 | this.consume(); |
| 44 | bus.on('app/exit', this.destroy); |
| 45 | } |
| 46 | |
| 47 | async consume() { |
| 48 | while (this.consuming) { |
Callers
nothing calls this directly
Tested by
no test coverage detected