Re: [whatwg/dom] Improving ergonomics of events with Observable (#544)

I have been trying to understand the proposed semantics, and I admit to being a bit lost.  https://github.com/tc39/proposal-observable doesn't seem to really describe them, nor does this issue.  Some specific questions I have even without understanding the whole proposal:

1. There is some sort of queuing happening in an Observable that is not being observed, right?  Is this limited in any way?  If I do `on("mousemove")` and then never subscribe to it, have I just created an unbounded memory leak?
2. When do the observables created by `on` get created?  For example, if I `on("DOMContentLoaded")` after that event has fired, will I get that notification?
3. Does `on` create a new observable each time?

All this would be helped by a processing model description.  If there is one already, a link to it somewhere near the beginning of this thread would be much appreciated.

-- 
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/544#issuecomment-361339775

Received on Monday, 29 January 2018 18:28:59 UTC