update and fix (#1225)

Co-authored-by: Caldwell <15591472+Caldwell-74@users.noreply.github.com>
This commit is contained in:
Caldwell
2024-04-24 02:00:28 +02:00
committed by GitHub
parent 703e7c52ae
commit a3f9a5c21e
3 changed files with 36 additions and 0 deletions
@@ -34,6 +34,13 @@ export class SleeveInfiltrateWork extends SleeveWorkClass {
this.nextCompletionPair.promise = new Promise((r) => (this.nextCompletionPair.resolve = r));
return this.nextCompletionPair.promise;
}
finish() {
if (this.nextCompletionPair.resolve) {
this.nextCompletionPair.resolve();
this.nextCompletionPair.resolve = null;
this.nextCompletionPair.promise = null;
}
}
APICopy() {
return {