RunAsync<T>(Func<Task<T>>) Method
Runs the specified function in exclusive mode asynchronously.
Task<T> RunAsync<T>(Func<Task<T>> func)
- Namespace
- Spectre
.Console - Containing Type
- IExclusivityMode
Parameters
-
T
- The result type.
Parameters
-
Func
<Task <T> > func - The func to run in exclusive mode.
Returns
-
Task
<T>