Sha256: 74ead99a9e30ac3cdd8d33804038abfe244536f6a8bfdb6338537f6eae632ee0

Contents?: true

Size: 315 Bytes

Versions: 5

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true

require_relative "../../lib/tty-spinner"

spinners = TTY::Spinner::Multi.new

sp1 = spinners.register "[:spinner] one"
sp2 = spinners.register "[:spinner] two"
sp3 = spinners.register "[:spinner] three"

sp1.auto_spin
sp2.auto_spin
sp3.auto_spin

sleep(2)

sp1.stop
sp2.stop
sp3.stop

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
planter-cli-3.0.7 lib/tty-spinner/examples/multi/multi.rb
planter-cli-3.0.5 lib/tty-spinner/examples/multi/multi.rb
planter-cli-3.0.4 lib/tty-spinner/examples/multi/multi.rb
planter-cli-3.0.3 lib/tty-spinner/examples/multi/multi.rb
planter-cli-3.0.2 lib/tty-spinner/examples/multi/multi.rb