This commit is contained in:
xiaojunnuo
2026-02-06 16:29:53 +08:00
parent f250889c3e
commit 8d61e8179f
+2 -1
View File
@@ -52,7 +52,8 @@ async function retryPromise(fn, attempts, backoff, logger = log) {
let aborted = false;
try {
const data = await fn(() => { aborted = true; });
const setAbort = () => { aborted = true; }
const data = await fn(setAbort);
return data;
}
catch (e) {