Sha256: a79ed6c4746b912d2227ee470dd57e5c15ffe970348108d5a72fc6daf819a00d

Contents?: true

Size: 285 Bytes

Versions: 11

Compression:

Stored size: 285 Bytes

Contents

# frozen_string_literal: true

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

$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

11 entries across 11 versions & 1 rubygems

Version Path
polyphony-0.40 examples/io/xx-irb.rb
polyphony-0.39 examples/io/xx-irb.rb
polyphony-0.38 examples/io/xx-irb.rb
polyphony-0.36 examples/io/xx-irb.rb
polyphony-0.34 examples/io/xx-irb.rb
polyphony-0.33 examples/io/xx-irb.rb
polyphony-0.32 examples/io/xx-irb.rb
polyphony-0.31 examples/io/xx-irb.rb
polyphony-0.30 examples/io/xx-irb.rb
polyphony-0.29 examples/io/xx-irb.rb
polyphony-0.28 examples/io/xx-irb.rb