| Package | org.flexunit.token |
| Class | public class AsyncCoreStartupToken |
| Inheritance | AsyncCoreStartupToken Object |
AsyncCoreStartupToken is used when the FlexUnit frameworks needs to wait for an
asynchronous operation before it can begin test execution. The token is returned by a class needing
to do the operation. The class pending can add a notificationMethod (a method to be called when the
async operation is complete).
See also
| Property | Defined By | ||
|---|---|---|---|
| runner : IRunner
Returns an instance of the IRunner associated with the AsyncCoreStartupToken. | AsyncCoreStartupToken | ||
| Method | Defined By | ||
|---|---|---|---|
Constructor. | AsyncCoreStartupToken | ||
addNotificationMethod(method:Function):AsyncCoreStartupToken
Adds a notification method to the AsyncCoreStartupToken and returns the token. | AsyncCoreStartupToken | ||
sendReady():void
Calls each notification method and passes the current IRunner to that method. | AsyncCoreStartupToken | ||
| runner | property |
runner:IRunner
Returns an instance of the IRunner associated with the AsyncCoreStartupToken.
public function get runner():IRunner public function set runner(value:IRunner):void| AsyncCoreStartupToken | () | Constructor |
public function AsyncCoreStartupToken()Constructor.
| addNotificationMethod | () | method |
public function addNotificationMethod(method:Function):AsyncCoreStartupToken
Adds a notification method to the AsyncCoreStartupToken and returns the token.
Parameters
method:Function — A Function that will be invoked when the AsyncCoreStartupToken
are ready or have completed.
|
AsyncCoreStartupToken — this AsyncCoreStartupToken with the added method.
|
| sendReady | () | method |
public function sendReady():void
Calls each notification method and passes the current IRunner to that method.