MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / pushClean

Method pushClean

packages/hydrojudge/src/task.ts:205–208  ·  view source on GitHub ↗
(f: () => any | Promise<any>)

Source from the content-addressed store, hash-verified

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 });

Callers 5

compileMethod · 0.95
compileLocalFileMethod · 0.95
runGeneratorFunction · 0.80
runStdFunction · 0.80
judgeFunction · 0.80

Calls 2

fFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected