(f: () => any | Promise<any>)
| 203 | } |
| 204 | |
| 205 | async pushClean(f: () => any | Promise<any>) { |
| 206 | if (this.finished) await f().catch(() => null); |
| 207 | else this.clean.push(f); |
| 208 | } |
| 209 | |
| 210 | async compile(lang: string, code: CopyInFile) { |
| 211 | using compileSpan = this.startChildSpan('judge.compile', { lang }); |
no test coverage detected