Class: CLI::UI::Spinner::Async
- Inherits:
-
Object
- Object
- CLI::UI::Spinner::Async
- Defined in:
- lib/cli/ui/spinner/async.rb
Class Method Summary collapse
-
.start(title) ⇒ Object
Convenience method for
initialize.
Instance Method Summary collapse
-
#initialize(title) ⇒ Async
constructor
Initializes a new asynchronous spinner with no specific end.
-
#stop ⇒ Object
Stops an asynchronous spinner.
Constructor Details
Class Method Details
.start(title) ⇒ Object
Convenience method for initialize
: (String title) -> Async
12 13 14 |
# File 'lib/cli/ui/spinner/async.rb', line 12 def start(title) new(title) end |
Instance Method Details
#stop ⇒ Object
Stops an asynchronous spinner
: -> bool
41 42 43 44 |
# File 'lib/cli/ui/spinner/async.rb', line 41 def stop @m.synchronize { @cv.signal } @t.value end |