Class AsyncExecutor
- Namespace
- DisCatSharp.Common.Utilities
- Assembly
- DisCatSharp.Common.dll
Provides a simplified way of executing asynchronous code synchronously.
public class AsyncExecutor
- Inheritance
-
AsyncExecutor
- Inherited Members
- Extension Methods
Constructors
- AsyncExecutor()
Creates a new instance of asynchronous executor.
Methods
- Execute(Task)
Executes a specified task in an asynchronous manner, waiting for its completion.
- Execute<T>(Task<T>)
Executes a specified task in an asynchronous manner, waiting for its completion, and returning the result.