Don't need async here

This commit is contained in:
Jake Archibald
2021-02-05 12:23:17 +00:00
parent 7ff637a1ff
commit 73ac08c0cd

View File

@@ -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> {