Packageorg.spicefactory.parsley.flex.command
Classpublic class AsyncTokenResultProcessor
InheritanceAsyncTokenResultProcessor Inheritance Object

Result processor for commands that produce an AsyncToken as a result. This allows for transparent replacement of the AsyncToken with the result or fault it generates.



Public Methods
 MethodDefined By
  
cancel():void
Cancels the result processor, discarding any result of the AsyncToken.
AsyncTokenResultProcessor
  
execute(token:AsyncToken, callback:Function):void
Processes the specified token.
AsyncTokenResultProcessor
Method Detail
cancel()method
public function cancel():void

Cancels the result processor, discarding any result of the AsyncToken.

execute()method 
public function execute(token:AsyncToken, callback:Function):void

Processes the specified token.

Parameters

token:AsyncToken — the AsyncToken result of a command
 
callback:Function — the function to invoke once the result or fault is available