StartAsync<T>(string, Func<StatusContext, Task<T>>) Method
Starts a new status display and returns a result.
public Task<T> StartAsync<T>(string status, Func<StatusContext, Task<T>> func)
- Namespace
- Spectre
.Console - Containing Type
- Status
Parameters
-
T
- The result type of task.
Parameters
- string status
- The status to display.
-
Func
<StatusContext, Task <T> > func - The action to execute.
Returns
-
Task
<T>