Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
-
It would be great to be able to cancel a long-lasting request when its result is no longer needed. As I mentioned above, axios supports this using the
I see that ethers uses ws which, unfortunately, doesn't seem to have any cancellation mechanism. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I just wanted to suggest to use the Abort Controller instead of using Promise.race when performing any fetch, because this would stop the request instead of just ignoring the response (while keeping the promise processing).
https://developer.mozilla.org/en-US/docs/Web/API/AbortController
Beta Was this translation helpful? Give feedback.
All reactions