TaskUtilities Methods |
The TaskUtilities type exposes the following members.
Name | Description | |
---|---|---|
EnsureSTAThreadTask(Action) |
If the current thread is STA, run the specified action, otherwise start an STA thread and run the action in this new thread.
| |
EnsureSTAThreadTaskT(FuncT) |
If the current thread is STA, run the specified function, otherwise start an STA thread and run the function in this new thread.
| |
Forget |
Forgets a task, with acceptable exceptions.
| |
ForgetAwait |
Forgets a task, with acceptable exceptions, using current synchronization context.
| |
RunTasksInParallelT(IEnumerableT, FuncT, Task, Int32) |
Runs a list of tasks in parallel on a list of work items .
| |
RunTasksInParallelT(IEnumerableT, FuncT, CancellationToken, Task, CancellationToken, Int32) |
Runs a list of tasks in parallel on a list of work items .
| |
StartSTAThreadTask(Action) |
Starts a a new STA thread and run the specified action.
| |
StartSTAThreadTaskT(FuncT) |
Starts a a new STA thread and run the specified function.
|