3 ms·
The worker code is interesting. Looks like a single observer that watches everything and dispatches to methods on a global state object. One would expect one ob
by agentultra 12y ago
The worker code is interesting. Looks like a single observer that watches everything and dispatches to methods on a global state object. One would expect one observer per subject. Is there some implementation detail in web workers that makes this design more efficient than registering an observer per event?