Spinner<T>(Task<T>, Spinner, Style, IAnsiConsole) Method

Runs a task with a spinner animation.
public static Task<T> Spinner<T>(this Task<T> task, Spinner spinner = null, Style style = null, IAnsiConsole ansiConsole = null)
Containing Type
SpinnerExtensions

Parameters

T
The type of the task result.

Parameters

Task<T> task
The task to run.
Spinner spinner
The spinner to use.
Style style
The style to apply to the spinner.
IAnsiConsole ansiConsole
The console to write to.

Returns

Task<T>