Task Manager Documentation
All Packages
|
All Classes
|
Index
|
Frames
No Frames
ISynchronousTask
Package
com.rosettastone.library.taskmanager
Interface
public interface ISynchronousTask extends
ITask
, flash.events.IEventDispatcher
Implementors
SynchronousTask
,
SynchronousTaskWithClosure
A synchronous Task is one that completes immediately upon being run.
Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties
Property
Defined By
data
: *
[read-only] Optional data parameter passed to the Task complete/error/interruption method.
ITask
isComplete
: Boolean
[read-only] The current task has successfully completed execution.
ITask
isErrored
: Boolean
[read-only] The current task failed.
ITask
isRunning
: Boolean
[read-only] The task is currently running.
ITask
message
: String
[read-only] Optional message parameter passed to the task complete/error/interruption method.
ITask
numInternalOperations
: int
[read-only] Number of internal operations conducted by this task.
ITask
numInternalOperationsCompleted
: int
[read-only] Number of internal operations that have completed.
ITask
numInternalOperationsPending
: int
[read-only] Number of internal operations not yet completed.
ITask
numTimesCompleted
: int
[read-only] Number of times this task has completed.
ITask
numTimesErrored
: int
[read-only] Number of times this task has errored.
ITask
numTimesInterrupted
: int
[read-only] Number of times this task has been interrupted.
ITask
numTimesReset
: int
[read-only] Number of times this task has been reset.
ITask
numTimesStarted
: int
[read-only] Number of times this task has been started.
ITask
running
: Boolean
[read-only] The task is currently running.
ITask
synchronous
: Boolean
[read-only] The current task can be executed synchronously.
ITask
taskIdentifier
: String
(Optional) human-readable label for task.
ITask
uniqueID
: Number
[read-only] Unique ID for a task.
ITask
Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods
Method
Defined By
and
(... chainedTasks):
ITask
Executes the specified tasks when the current task is executed.
ITask
or
(... chainedTasks):
ITask
Executes the specified tasks if the current task fails.
ITask
reset
():void
Resets the task to it's pre-run state.
ITask
run
():
ITask
Starts a task.
ITask
then
(... chainedTasks):
ITask
Executes the specified tasks once the current task has completed successfully.
ITask
withCompleteHandler
(completeHandler:Function):
ITask
Although tasks dispatch TaskEvents to indicate completion, this method may also be used for notification purposes.
ITask
withErrorHandler
(errorHandler:Function):
ITask
Although tasks dispatch TaskEvents to indicate failure, this method may also be used for notification purposes.
ITask
withFinalHandler
(finalHandler:Function):
ITask
This handler is invoked upon either success or failure of the Task.
ITask
withStartedHandler
(startedHandler:Function):
ITask
Although tasks dispatch TaskEvents to indicate starting, this method may also be used for notification purposes.
ITask
Tue Sep 24 2013, 09:21 AM -04:00