Sha256: a8925a77009cc83cf5d7b8e32aafc854834ead0c45b5d2b2c0aaf7b78f04b220

Contents?: true

Size: 321 Bytes

Versions: 179

Compression:

Stored size: 321 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'polyphony'
require 'polyphony/adapters/readline'
require 'pry'

$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'
binding.pry

Version data entries

179 entries across 91 versions & 1 rubygems

Version Path
polyphony-1.6 examples/io/reline.rb
polyphony-1.6 examples/io/pry.rb
polyphony-1.5 examples/io/reline.rb
polyphony-1.5 examples/io/pry.rb
polyphony-1.4 examples/io/pry.rb
polyphony-1.4 examples/io/reline.rb
polyphony-1.3 examples/io/pry.rb
polyphony-1.3 examples/io/reline.rb
polyphony-1.2.1 examples/io/pry.rb
polyphony-1.2.1 examples/io/reline.rb
polyphony-1.2 examples/io/pry.rb
polyphony-1.2 examples/io/reline.rb
polyphony-1.1.1 examples/io/pry.rb
polyphony-1.1.1 examples/io/reline.rb
polyphony-1.1 examples/io/pry.rb
polyphony-1.1 examples/io/reline.rb
polyphony-1.0.2 examples/io/pry.rb
polyphony-1.0.2 examples/io/reline.rb
polyphony-1.0.1 examples/io/pry.rb
polyphony-1.0.1 examples/io/reline.rb