class Topia::AsyncSpinner

Overview

High-performance, non-blocking spinner using Crystal's select and channels

Defined in:

topia/async_spinner.cr

Constant Summary

SPINNER_FRAMES = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]

Constructors

Instance Method Summary

Constructor Detail

def self.new(message : String = "Working...", update_interval : Time::Span = 100.milliseconds) #

[View source]

Instance Method Detail

def error(message : String) #

[View source]
def info(message : String) #

[View source]
def message : String #

[View source]
def message=(new_message : String) #

[View source]
def running : Bool #

[View source]
def start(new_message : String | Nil = nil) #

[View source]
def stop #

[View source]
def success(message : String) #

[View source]
def warning(message : String) #

[View source]