Sha256: 0479987fb2a4612a091dbc728ed337641ace391bc5819a3495f5b1aeabd2260a

Contents?: true

Size: 207 Bytes

Versions: 14

Compression:

Stored size: 207 Bytes

Contents

# #  frozen_string_literal: true
b = box

first_wait=wait 2 do
  b.color(:red)
end
wait 1 do
  puts 'now'
  stop({ wait: first_wait })
  # or
  # wait(:kill, first_wait)
end


wait 3 do
  b.color(:green)
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
atome-0.5.7.6.0 vendor/assets/application/examples/wait.rb
atome-0.5.7.5.9 vendor/assets/application/examples/wait.rb
atome-0.5.7.5.4 vendor/assets/application/examples/wait.rb
atome-0.5.7.5.3 vendor/assets/application/examples/wait.rb
atome-0.5.7.5.1 vendor/assets/application/examples/wait.rb
atome-0.5.7.4.8 vendor/assets/application/examples/wait.rb
atome-0.5.7.4.7 vendor/assets/application/examples/wait.rb
atome-0.5.7.4.6 vendor/assets/application/examples/wait.rb
atome-0.5.7.4.3 vendor/assets/application/examples/wait.rb
atome-0.5.7.4.2 vendor/assets/application/examples/wait.rb
atome-0.5.7.3.9 vendor/assets/application/examples/wait.rb
atome-0.5.7.3.6 vendor/assets/application/examples/wait.rb
atome-0.5.7.3.5 vendor/assets/application/examples/wait.rb
atome-0.5.7.3.3 vendor/assets/application/examples/wait.rb