Word Game Builder 2.0.1f2
Reference Manual
|
Represents an asynchronous task. More...
Public Member Functions | |
void | Abort () |
Abort this task. More... | |
void | AbortWait () |
Abort this task, and wait until it has ended. More... | |
void | AbortWaitForSeconds (float seconds) |
Abort this task, and wait until it has ended, or the specified amount of time (in seconds) has passed. More... | |
void | Dispose () |
Disposes this task and waits for completion if it is still running. More... | |
void | Wait () |
Blocks the calling thread until the task has ended. More... | |
void | WaitForSeconds (float seconds) |
Blocks the calling thread until the task has ended, or the specified amount of time (in seconds) has passed. More... | |
Static Public Member Functions | |
static AsyncTask | Create (Action< AsyncTask > action) |
Creates a task on a background thread. More... | |
static void | Create (Action action) |
Creates a task on a background thread, without tracking task state. More... | |
static AsyncTask | Dispatch (Action< AsyncTask > action) |
Dispatches an action onto the main thread. More... | |
static void | Dispatch (Action action) |
Dispatches an action onto the main thread, without tracking task state. More... | |
Properties | |
bool | hasEnded [get] |
Returns true if this task has ended, been skipped, or been aborted. More... | |
bool | isFailed [get] |
Returns true if this task has failed. More... | |
bool | isSucceeded [get] |
Returns true if this task was successful. More... | |
Represents an asynchronous task.
|
inline |
Abort this task.
|
inline |
Abort this task, and wait until it has ended.
|
inline |
Abort this task, and wait until it has ended, or the specified amount of time (in seconds) has passed.
seconds | The maximum amount of seconds to wait. |
Creates a task on a background thread.
action | The action to run on a background thread. |
|
inlinestatic |
Creates a task on a background thread, without tracking task state.
action | The action to run on a background thread. |
Dispatches an action onto the main thread.
action | The action to run on the main thread. |
|
inlinestatic |
Dispatches an action onto the main thread, without tracking task state.
action | The action to run on the main thread. |
|
inline |
Disposes this task and waits for completion if it is still running.
|
inline |
Blocks the calling thread until the task has ended.
|
inline |
Blocks the calling thread until the task has ended, or the specified amount of time (in seconds) has passed.
seconds | The maximum amount of seconds to wait. |
|
get |
Returns true if this task has ended, been skipped, or been aborted.
|
get |
Returns true if this task has failed.
|
get |
Returns true if this task was successful.