Word Game Builder 2.0.1f2
Reference Manual
Static Public Member Functions | List of all members
TaskManager Class Reference

Provides methods for dealing with asynchronous tasks. More...

+ Collaboration diagram for TaskManager:

Static Public Member Functions

static void AbortAllTasks ()
 Abort all currently running asynchronous tasks. More...
 
static void AbortAllTasksAndWait ()
 Abort all currently running asynchronous tasks and wait for completion. More...
 
static IEnumerable< AsyncTaskGetActiveTasks ()
 Get all currently active tasks. More...
 

Detailed Description

Provides methods for dealing with asynchronous tasks.

Member Function Documentation

static void AbortAllTasks ( )
inlinestatic

Abort all currently running asynchronous tasks.

static void AbortAllTasksAndWait ( )
inlinestatic

Abort all currently running asynchronous tasks and wait for completion.

static IEnumerable<AsyncTask> GetActiveTasks ( )
inlinestatic

Get all currently active tasks.

When enumerating through tasks, it is still recommended to check their status, as they may have finished during enumeration.

Returns
An enumerable with all active tasks.