Skip to content

Commit e78bb7a

Browse files
committed
Fix minor warning on spinner.ui.
Fixes a minor warning about `sleep ` being deprecated in fa
1 parent 4e528c1 commit e78bb7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/spinner.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module CB
44

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

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

0 commit comments

Comments
 (0)