Skip to content

Commit

Permalink
Fix minor warning on spinner.ui.
Browse files Browse the repository at this point in the history
Fixes a minor warning about `sleep ` being deprecated in fa
  • Loading branch information
abrightwell committed Dec 11, 2024
1 parent 4e528c1 commit e78bb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/spinner.cr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module CB

def initialize(@text : String = "", @io : IO = IO::Memory.new)
@chars = ["|", "/", "-", "\\"].map { |c| "#{c.colorize.blue}" }
@delay = 0.2
@delay = 200.milliseconds
@running = false

# Control Sequence to allow overwriting the line so that the spinner can
Expand Down

0 comments on commit e78bb7a

Please sign in to comment.