Re: [whatwg/dom] Consider adding AbortController.prototype.follow(signal) (#920)

@MattiasBuelens hey :] Note your implementation of `followSignal` does not work in case the signal is _never_ aborted. It works for the "operation was aborted" case but not for the "everything went fine" case.

The handler would have to be weak so that if the operation completes successfully the parent controller's signal does not keep a reference to the child controller. This is impossible in userland because `addEventListener`'s API takes a function.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/920#issuecomment-726879818

Received on Friday, 13 November 2020 17:05:10 UTC