AbortController Support
Bas950 opened this issue · comments
Would support for AbortController be considered? (in the addEventListener
, on
, and once
functions)
Supported in all browsers and node, you can pass a signal
option parameter to the native addEventListener
function.
The listener will be removed when the given AbortSignal object's abort() method is called. If not specified, no AbortSignal is associated with the listener.
Links:
https://developer.mozilla.org/en-US/docs/Web/API/AbortController
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#signal
Oh, I just read a comment here: #268 (comment).
This is probably out of scope for this project too.