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

> There are also async-iterators. currently stage 2  https://docs.google.com/presentation/d/1r2V1sLG8JSSk8txiLh4wfTkom-BoOsk52FgPBy8o3RM/edit#slide=id.g1236b1e2d6_0_320 and you can build on those.

> That said, for event emitters observables are likely a better fit.

Definitely a better fit. I don't think allocating a Promise for every mouse movement event would be very efficient.

-- 
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#issuecomment-253639819

Received on Thursday, 13 October 2016 21:10:47 UTC