Method Execute
- Namespace
- DisCatSharp.Common.Utilities
- Assembly
- DisCatSharp.Common.dll
Execute(Task)
Executes a specified task in an asynchronous manner, waiting for its completion.
public void Execute(Task task)
Parameters
task
TaskTask to execute.
Execute<T>(Task<T>)
Executes a specified task in an asynchronous manner, waiting for its completion, and returning the result.
public T? Execute<T>(Task<T> task)
Parameters
task
Task<T>Task to execute.
Returns
- T
Task's result.
Type Parameters
T
Type of the Task's return value.