Sha256: 1beacf221c176bf69ad99e44817c25bdcec47042b8728d5698f8738cd37b434e

Contents?: true

Size: 281 Bytes

Versions: 19

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'irb'
require 'polyphony'

$counter = 0
timer = spin do
  throttled_loop(5) do
    $counter += 1
  end
end

at_exit { timer.stop }

puts 'try typing $counter to see the counter incremented in the background'
IRB.start

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
polyphony-1.6 examples/io/irb.rb
polyphony-1.5 examples/io/irb.rb
polyphony-1.4 examples/io/irb.rb
polyphony-1.3 examples/io/irb.rb
polyphony-1.2.1 examples/io/irb.rb
polyphony-1.2 examples/io/irb.rb
polyphony-1.1.1 examples/io/irb.rb
polyphony-1.1 examples/io/irb.rb
polyphony-1.0.2 examples/io/irb.rb
polyphony-1.0.1 examples/io/irb.rb
polyphony-1.0 examples/io/irb.rb
polyphony-0.99.6 examples/io/irb.rb
polyphony-0.99.5 examples/io/irb.rb
polyphony-0.99.4 examples/io/irb.rb
polyphony-0.99.3 examples/io/irb.rb
polyphony-0.99.2 examples/io/irb.rb
polyphony-0.99.1 examples/io/irb.rb
polyphony-0.99 examples/io/irb.rb
polyphony-0.98 examples/io/irb.rb