- From: Darien Maillet Valentine <notifications@github.com>
 - Date: Sat, 04 Dec 2021 07:21:45 -0800
 - To: whatwg/dom <dom@noreply.github.com>
 - Cc: Subscribed <subscribed@noreply.github.com>
 
Received on Saturday, 4 December 2021 15:21:58 UTC
Spitballing follows. Not sure if maybe some of these are already unavailable due to collision given how many EventTarget subclasses there are.
Single
- `.when("blur")`
- `.advent("hashchange")` 
- `.eventual("keydown")` / `.eventually("keydown")`
Iterator
- `.events("message")`
- `.ongoing("input")`
- `.subscribe("submit")`
None of the single-promise ones seem quite right: _when_ doesn’t strongly imply “once,” _eventually_ maybe sounds more like you’re asking the agent to schedule work, and _advent,_ though nearly an exact match for the concept in other regards (even being from the same root word as event), too strongly implies _the_ start of something (i.e., the very first event, not the next event). Still, maybe one of them will kick off better ideas.
---
(for a second I thought “oh! ‘await’!” before realizing why that’s a terrible method name — though at least no one could knock `await video.await("waiting")` for being unclear about its intention).
-- 
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-986044436
Received on Saturday, 4 December 2021 15:21:58 UTC