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

What's the actual difference? The thing the OP proposes is

> `EventTarget.once() returns a Promise that is resolved the next time the event is dispatched.

which sounds exactly like `first` from the proposal:

> `Observable#first()` returns a Promise that resolves when the first event is fired on an EventTarget

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

Message ID: <whatwg/dom/issues/1038/1700423864@github.com>

Received on Thursday, 31 August 2023 06:12:40 UTC