Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Dispatch an event for the nsISerialEventTarget, using the direct task queue.
This function must be called from the same nsISerialEventTarget implementing direct task dispatching.
The alreadyAddRefed<> event to dispatch.
Generated using TypeDoc
The primary use of this interface is to allow any nsISerialEventTarget to provide Direct Task dispatching which is similar (but not identical to) the microtask semantics of JS promises. New direct task may be dispatched when a current direct task is running. In which case they will be run in FIFO order.