Re: [whatwg/dom] Expose an `aborted` promise on AbortSignal? (#946)

OK, I'm glad to confirm my understanding of the proposal as (a type of) weak listeners plus some sugar.

I take your point that it might be less scary to expose only the higher-level API. IMO the cat's out of the bag since WeakRefs and FinalizationRegistry exist, and it's scarier to make people use those directly than it is to give them higher-level "do what I mean" sugar. But I have no idea if that's a widely-shared opinion.

Let's see what other folks think!

-- 
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/946#issuecomment-773623154

Received on Thursday, 4 February 2021 21:44:31 UTC