(cb: (result: any, task: () => Promise<any>) => void)
| 105 | } |
| 106 | |
| 107 | onSuccess(cb: (result: any, task: () => Promise<any>) => void) { |
| 108 | this.onSuccesses.push(cb) |
| 109 | return () => { |
| 110 | this.onSuccesses = this.onSuccesses.filter((d) => d !== cb) |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | stop() { |
| 115 | this.running = false |
no test coverage detected