()
| 66 | } |
| 67 | |
| 68 | async check() { |
| 69 | const log = (payload: any) => this.send({ type: 'log', payload }); |
| 70 | const warn = (payload: any) => this.send({ type: 'warn', payload }); |
| 71 | const error = (payload: any) => this.send({ type: 'error', payload }); |
| 72 | await this.ctx.check.run(this, log, warn, error, (id) => { this.id = id; }); |
| 73 | } |
| 74 | |
| 75 | async cleanup() { |
| 76 | this.ctx.check.cancel(this.id); |