judge: compile: add asyncDispose

This commit is contained in:
undefined committed 2025-04-14 19:21:35 +08:00
1 parent e31b84d29e
commit 302d03fe08
3 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ export class JudgeTask {
end: (data: Partial<JudgeResultBody>) => void;
env: Record<string, string>;
callbackCache?: TestCase[];
compileCache: Record<string, Pick<Execute, 'execute' | 'copyIn'>> = {};
compileCache: Record<string, Pick<Execute, 'execute' | 'copyIn' | typeof Symbol.asyncDispose>> = {};
constructor(public session: Session, public request: JudgeRequest) {
this.stat.receive = new Date();