Skip to content

Make images smaller using best-in-class codecs, right in the browser.

JavaScript

Don't need async here

Jake Archibald73ac08c0cda5
diff --git a/src/client/lazy-app/util/index.ts b/src/client/lazy-app/util/index.ts
index bb06974b..864c99e1 100644
--- a/src/client/lazy-app/util/index.ts
+++ b/src/client/lazy-app/util/index.ts
@@ -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
* signalled, otherwise resolves with the promise.
*/
-export async function abortable<T>(
+export function abortable<T>(
signal: AbortSignal,
promise: Promise<T>,
): Promise<T> {