(sorry about the late reply) Stephen Kinger wrote:
I have a question about events proceeding in XPCOM. In COM components, i can fire events to others components asynchronously (ie, the event firing function return directly and don't stay frozen until the event is recieve). I found the nsIObserverService to dispacth this kind of event and each component which have to recieve a particular event has to subscribe for it before.
The observer service is not async. If you want asynchronous events, you can use nsIEventQueue or nsISupports proxies (even when on the same thread). Be aware that neither of them are frozen.
_______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
