mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 00:37:19 +00:00
Missing args
This commit is contained in:
@@ -52,12 +52,13 @@ for (const methodName of methodNames) {
|
|||||||
this._terminateWorker();
|
this._terminateWorker();
|
||||||
}, workerTimeout);
|
}, workerTimeout);
|
||||||
|
|
||||||
return abortable(signal, this._workerApi![methodName]() as any).finally(
|
return abortable(
|
||||||
() => {
|
signal,
|
||||||
|
this._workerApi as any,
|
||||||
|
).finally(() => {
|
||||||
done = true;
|
done = true;
|
||||||
clearTimeout(timeoutId);
|
clearTimeout(timeoutId);
|
||||||
},
|
});
|
||||||
);
|
|
||||||
});
|
});
|
||||||
} as any;
|
} as any;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user