Skip to content
ConsoleMonster
Class

SpinnerHandle

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
sealed

Thread-safe live handle for a Spinner.

Inheritance

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

Constructors

public SpinnerHandle(ILiveDispatcher dispatcher, string widgetId) #

Creates a handle.

Parameters

dispatcher ConsoleMonster.Live.ILiveDispatcher required
The dispatcher.
widgetId string required
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 optional
The status.
detail string? = null optional
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? required
The detail, or null to clear it.
public void Label(string label) #

Changes the label.

Parameters

label string required
The label (markup).
public void Start(string? label = null) #

Restarts the clock and returns to running, optionally with a new label.

Parameters

label string? = null optional
The new label (markup), or null to keep it.