We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d73d9d2 commit a1fd0bbCopy full SHA for a1fd0bb
packages/web/src/worker/sync/SharedSyncImplementation.ts
@@ -624,11 +624,11 @@ function withAbort<T>(options: {
624
625
action()
626
.then((data) => {
627
- completePromise(() => resolve(data));
628
// We already rejected due to the abort, allow for cleanup
629
if (signal.aborted) {
630
- cleanupOnAbort?.(data);
+ return completePromise(() => cleanupOnAbort?.(data));
631
}
+ completePromise(() => resolve(data));
632
})
633
.catch((e) => completePromise(() => reject(e)));
634
});
0 commit comments