Package | com.rosettastone.library.taskmanager |
Class | public class SynchronousTaskWithClosure |
Inheritance | SynchronousTaskWithClosure ![]() ![]() ![]() |
Implements | ISynchronousTask, IInterruptibleTask |
Method | Defined By | ||
---|---|---|---|
SynchronousTaskWithClosure(customRunFunction:Function = null, taskIdentifier:String = null) | SynchronousTaskWithClosure | ||
![]() |
Executes the specified tasks when the current task is executed. | Task | |
![]() | Task | ||
![]() | errorTask(message:String, data:* = null):void
Instructs Task to dispatch an error event. | TaskWithClosure | |
![]() | finishTask(message:String, data:* = null):void
Instructs Task to complete itself. | TaskWithClosure | |
![]() | interrupt():Boolean
Interruptible tasks should override interrupt() and get interruptible() if they are interruptible. | Task | |
![]() | 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 |