API Documentation | All Packages | All Classes | Index | Frames No Frames |
AsyncCoreStartupToken

Package | org.flexunit.token
Class | public class AsyncCoreStartupToken
Inheritance | AsyncCoreStartupToken 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

| Property | Defined By
--- | --- | ---
|  | runner : IRunner Returns an instance of the IRunner associated with the AsyncCoreStartupToken. | AsyncCoreStartupToken

Public Methods

| Method | Defined By
--- | --- | ---
|  | AsyncCoreStartupToken() 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

Property Detail

runner | property

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

Thu Apr 10 2014, 08:07 AM +10:00