Implemented by
- @mozilla.org/network/io-thread-pool;1
- @mozilla.org/event-queue;1
- @mozilla.org/network/socket-transport-service;1
nsIEventTarget This interface is used to dispatch events to a particular thread. In many cases the event target also supports nsIEventQueue.
[scriptable, uuid(ea99ad5b-cc67-4efb-97c9-2ef620a59f2a)]
interface nsIEventTarget : nsISupports
Methods
This method returns true if the event target is the current thread.
boolean
isOnCurrentThread()
Method for posting an asynchronous event to the event target. If this
method succeeds, then the event will be dispatched on the target thread.
@param aEvent
The event to dispatched.
[noscript]
void
postEvent(in PLEventPtr aEvent)
Compare to: