Class AsyncUtils
Contains methods and properties related to async execution and tasks.
public static class AsyncUtils
- Inheritance
-
AsyncUtils
Methods
- EndThread(ref Thread?)
Calls Interrupt() and clears ref parameter.
- RunWithTimeout(Func<Task>, int)
Runs a task with a specified timeout.
- Sync(Func<Task>)
Runs the specified task synchronously.
- Sync<T>(Func<Task<T>>)
Runs the specified task synchronously and returns result.