Sha256: 8f346a13206b6eb73ca1278551aeca2b8728f887871d629c7b5849bf8810b3f5

Contents?: true

Size: 294 Bytes

Versions: 86

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'irb'
require 'polyphony/adapters/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

86 entries across 86 versions & 1 rubygems

Version Path
polyphony-0.97 examples/io/irb.rb
polyphony-0.96 examples/io/irb.rb
polyphony-0.95 examples/io/irb.rb
polyphony-0.94 examples/io/irb.rb
polyphony-0.93 examples/io/irb.rb
polyphony-0.92 examples/io/irb.rb
polyphony-0.91 examples/io/irb.rb
polyphony-0.90 examples/io/irb.rb
polyphony-0.89 examples/io/irb.rb
polyphony-0.87 examples/io/irb.rb
polyphony-0.86 examples/io/irb.rb
polyphony-0.85 examples/io/irb.rb
polyphony-0.84.1 examples/io/irb.rb
polyphony-0.84 examples/io/irb.rb
polyphony-0.83 examples/io/irb.rb
polyphony-0.82 examples/io/irb.rb
polyphony-0.81.1 examples/io/irb.rb
polyphony-0.81 examples/io/irb.rb
polyphony-0.80 examples/io/irb.rb
polyphony-0.79 examples/io/irb.rb