Class MtaTaskScheduler
Simple task scheduler that runs tasks on pulled threads with MTA apartment state. Automatically
cleans up resources when the application exits
Inheritance
MtaTaskScheduler
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class MtaTaskScheduler : Object
Methods
Run(Action)
Execute action on a pulled thread
Declaration
public static Task Run(Action action)
Parameters
Type |
Name |
Description |
Action |
action |
|
Returns
Run<T>(Func<T>)
Delegate that returns a value
Declaration
public static Task<T> Run<T>(Func<T> func)
Parameters
Type |
Name |
Description |
Func<T> |
func |
|
Returns
Type Parameters