[whatwg/dom] Consider adding Promise-based API for listerning event (#333)

We now have `once` option in `AddEventListenerOptions`, but wouldn't it be more convenient if there is a Promise-based API for that?

Probably something like
```text
partial interface EventTarget {
  Promise<Event> on(DOMString type, optional EventListenerOptions options);
}
```
and let it behave like `AddEventListenerOptions.once`?

-- 
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/333

Received on Saturday, 24 September 2016 14:44:36 UTC