Readonly
isWhether the client is still open for new blockers. When this is true it is too late to add new blockers and addBlocker will throw an exception.
Readonly
jsclientThe JS implementation of the client.
It is strongly recommended that JS clients of this API use
jsclient
instead of the nsIAsyncShutdownClient
. See
AsyncShutdown.sys.mjs for more information on the JS version of
this API.
Readonly
nameThe name of the barrier.
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.
Add a blocker.
After a blocker
has been added with addBlocker
, if it is not
removed with removeBlocker
, this will, by design, eventually
CAUSE A CRASH.
Calling addBlocker
once nsIAsyncShutdownBarrier::wait() has been
called on the owning barrier returns an error.
If it's too late to add a blocker.
isClosed.
The blocker to add. Once
nsIAsyncShutdownBarrier::wait() has been called, it will not
call its aOnReady
callback until all blockers have been
removed, each by a call to removeBlocker
.
The filename of the callsite, as given by __FILE__
.
The linenumber of the callsite, as given by __LINE__
.
Information on the stack that lead to this call. Generally empty when called from C++.
Generated using TypeDoc
A client for a nsIAsyncShutdownBarrier.