Packageorg.flexunit.token
Classpublic class AsyncCoreStartupToken
InheritanceAsyncCoreStartupToken Inheritance Object

The 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

org.flexunit.runner.FlexUnitCore.runRunner()


Public Properties
 PropertyDefined By
  runner : IRunner
Returns an instance of the IRunner associated with the AsyncCoreStartupToken.
AsyncCoreStartupToken
Public Methods
 MethodDefined By
  
Constructor.
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
Property Detail
runnerproperty
runner:IRunner

Returns an instance of the IRunner associated with the AsyncCoreStartupToken.


Implementation
    public function get runner():IRunner
    public function set runner(value:IRunner):void
Constructor Detail
AsyncCoreStartupToken()Constructor
public function AsyncCoreStartupToken()

Constructor.

Method Detail
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.

Returns
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.