| Package | org.flexunit.internals.runners.statements |
| Class | public class AsyncStatementBase |
| Inheritance | AsyncStatementBase Object |
| Subclasses | AssignmentSequencer, ExpectAsync, ExpectException, Fail, FailOnTimeout, InvokeMethod, MethodCompleteWithParamsStatement, MethodRuleBase, RunAftersInline, RunBeforesInline, StatementSequencer, TheoryAnchor, TheoryBlockRunnerStatement |
AsyncStatementBase is responsible for notifiying a parent token that a task has been completed.
Many statement classes extend from this class in order to notify a parent statement that it has finished.
Classes that extend from the AsyncStatementBase can communicate with a parent class that has provided
an AsyncTestToken and notify the parent class when the class has finished its specific task.
A class that extends from the AsyncStatementBase calls the #sendComplete() method once
a parent AsyncTestToken is supplied. The parent token will then be notified of a potential error
that was encountered when running the AsyncStatementBase.
| Property | Defined By | ||
|---|---|---|---|
| myToken : AsyncTestToken
The AsyncTestToken for the current statment. | AsyncStatementBase | ||
| parentToken : AsyncTestToken
The AsyncTestToken for the parent of the current statment. | AsyncStatementBase | ||
| Method | Defined By | ||
|---|---|---|---|
Constructor. | AsyncStatementBase | ||
| Method | Defined By | ||
|---|---|---|---|
sendComplete(error:Error = null):void
If the parentToken has not already been alerted that the statement has completed, alert the parent token that
the current statement has finished. | AsyncStatementBase | ||
| myToken | property |
protected var myToken:AsyncTestToken
The AsyncTestToken for the current statment.
| parentToken | property |
protected var parentToken:AsyncTestToken
The AsyncTestToken for the parent of the current statment. This is notified when the
current statement has finished.
See also
| AsyncStatementBase | () | Constructor |
public function AsyncStatementBase()Constructor.
| sendComplete | () | method |
protected function sendComplete(error:Error = null):voidIf the parentToken has not already been alerted that the statement has completed, alert the parent token that the current statement has finished.
Parameters
error:Error (default = null) — The Error to send to the parentToken.
|