mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-17 03:00:13 +00:00
Don't need async here
This commit is contained in:
@@ -380,7 +380,7 @@ export function assertSignal(signal: AbortSignal) {
|
|||||||
* Take a signal and promise, and returns a promise that rejects with an AbortError if the abort is
|
* Take a signal and promise, and returns a promise that rejects with an AbortError if the abort is
|
||||||
* signalled, otherwise resolves with the promise.
|
* signalled, otherwise resolves with the promise.
|
||||||
*/
|
*/
|
||||||
export async function abortable<T>(
|
export function abortable<T>(
|
||||||
signal: AbortSignal,
|
signal: AbortSignal,
|
||||||
promise: Promise<T>,
|
promise: Promise<T>,
|
||||||
): Promise<T> {
|
): Promise<T> {
|
||||||
|
|||||||
Reference in New Issue
Block a user