TaskUtilities Class |
Namespace: callback.ShellBoost.Core.Utilities
public static class TaskUtilities
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.
|
![]() ![]() | EnsureSTAThreadTask<T>(Func<T>) |
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.
|
![]() ![]() | RunTasksInParallel<T>(IEnumerable<T>, Func<T, Task>, Int32) |
Runs a list of tasks in parallel on a list of work items .
|
![]() ![]() | RunTasksInParallel<T>(IEnumerable<T>, Func<T, 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.
|
![]() ![]() | StartSTAThreadTask<T>(Func<T>) |
Starts a a new STA thread and run the specified function.
|