Package | com.rosettastone.library.taskmanager |
Class | public class InterruptibleStubTask |
Inheritance | InterruptibleStubTask ![]() ![]() ![]() |
complete
and error
methods.
Method | Defined By | ||
---|---|---|---|
InterruptibleStubTask(autoCompleteUponRun:Boolean = false, taskIdentifier:String = null) | InterruptibleStubTask | ||
![]() |
Executes the specified tasks when the current task is executed. | Task | |
complete(message:String, data:* = null):void
Instructs Task to complete itself. | InterruptibleStubTask | ||
![]() | Task | ||
error(message:String, data:* = null):void
Instructs Task to dispatch an error event. | InterruptibleStubTask | ||
![]() | interrupt():Boolean [override]
Interrupt the current Task. | InterruptibleTask | |
![]() | interruptForTask(interruptingTask:ITask):Boolean
Interrupts the current Task to wait on the Task specified. | Task | |
![]() |
Executes the specified tasks if the current task fails. | Task | |
![]() | reset():void
Resets the task to it's pre-run state. | Task | |
![]() |
Starts a task. | Task | |
![]() |
Executes the specified tasks once the current task has completed successfully. | Task | |
![]() | withCompleteHandler(completeHandler:Function):ITask
Although tasks dispatch TaskEvents to indicate completion, this method may also be used for notification purposes. | Task | |
![]() | withErrorHandler(errorHandler:Function):ITask
Although tasks dispatch TaskEvents to indicate failure, this method may also be used for notification purposes. | Task | |
![]() | withFinalHandler(finalHandler:Function):ITask
This handler is invoked upon either success or failure of the Task. | Task | |
![]() | withInterruptionHandler(interruptionHandler:Function):ITask | Task | |
![]() | withStartedHandler(startedHandler:Function):ITask
Although tasks dispatch TaskEvents to indicate starting, this method may also be used for notification purposes. | Task |
Method | Defined By | ||
---|---|---|---|
customInterrupt():void [override]
Sub-classes should override this method to implement interruption behavior (removing event listeners, pausing objects, etc.). | InterruptibleStubTask | ||
![]() | customReset():void
Override this method to perform any custom reset operations. | Task | |
customRun():void [override]
Override this method to give your Task functionality. | InterruptibleStubTask | ||
![]() | dispatchProgressEvent():void | Task | |
![]() | getLoggerString(string:String):String
Returns a string for logging the specified task-state event. | Task | |
![]() | taskComplete(message:String, data:* = null):void
This method should be called upon Task completion. | Task | |
![]() | taskError(message:String, data:* = null):void
This method should be called upon Task failure. | Task | |
![]() | taskInterrupted(message:String, data:* = null):void
Call this method to interrupt the currently running Task. | Task | |
![]() | throwErrorIfAnyObjectInArrayIsNotATask(tasks:Array):void | Task |
InterruptibleStubTask | () | Constructor |
public function InterruptibleStubTask(autoCompleteUponRun:Boolean = false, taskIdentifier:String = null)
autoCompleteUponRun:Boolean (default = false )
| |
taskIdentifier:String (default = null )
|
complete | () | method |
public function complete(message:String, data:* = null):void
Instructs Task to complete itself.
Parameters
message:String | |
data:* (default = null )
|
customInterrupt | () | method |
override protected function customInterrupt():void
Sub-classes should override this method to implement interruption behavior (removing event listeners, pausing objects, etc.).
customRun | () | method |
override protected function customRun():void
Override this method to give your Task functionality.
error | () | method |
public function error(message:String, data:* = null):void
Instructs Task to dispatch an error event.
Parameters
message:String | |
data:* (default = null )
|