Skip to content

Commit

Permalink
refactor: 提升性能
Browse files Browse the repository at this point in the history
  • Loading branch information
share121 committed Feb 7, 2025
1 parent 8a84304 commit 68811b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions workerpool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ async function addEventListener(
try {
for await (const data of stream) messageHandle(data);
} catch (e) {
if (e instanceof DOMException && e.name === "AbortError") return;
errorHandle(e);
}
}
Expand Down

0 comments on commit 68811b3

Please sign in to comment.