Class
SpinnerHandle
ConsoleMonster.Widgets
Thread-safe live handle for a Spinner.
Inheritance
- LiveHandle
- SpinnerHandle
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Method Spinner.Handle
Constructors
public SpinnerHandle(ILiveDispatcher dispatcher, string widgetId) #Creates a handle.
Parameters
- dispatcher ConsoleMonster.Live.ILiveDispatcher
- The dispatcher.
- widgetId string
- The spinner name.
Methods
public void Complete(StatusKind status = Pass, string? detail = null) #Sets the final status (Pass, Fail, Warn, Skip), optionally with a closing detail.
Parameters
- status ConsoleMonster.Styling.StatusKind = Pass
- The status.
- detail string? = null
- The detail, or null to keep the current one.
public void Detail(string? detail) #Changes the muted detail, for example the current item.
Parameters
- detail string?
- The detail, or null to clear it.
public void Start(string? label = null) #Restarts the clock and returns to running, optionally with a new label.
Parameters
- label string? = null
- The new label (markup), or null to keep it.