Re: [whatwg/dom] once() and on() async utilities for EventTarget (Issue #1038)

> but in most cases it shouldn't matter

That's true - probably doesn't matter for indexeddb success/error\* for example - but it seems you can silently accrue _a lot_ of extras when handling ui events for mouse/pointer/touch/drag behaviors

\* in our homegrown version I eventually bit the bullet and said that "error" and "messageerror" events map to rejections, not yielded results. may not be a reasonable angle for built in behavior but fwiw, i've had no reason to regret it so far - in some cases it's radically more intuitive too

-- 
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/1038#issuecomment-985063243

Received on Thursday, 2 December 2021 22:47:33 UTC