Sha256: 78f2a895143b8340b1144a947cba52f8cac318f40668e10e76d4cd99806e50ba

Contents?: true

Size: 252 Bytes

Versions: 121

Compression:

Stored size: 252 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'polyphony'

spin do
  throttled_loop(3) { STDOUT << '.' }
end

spin do
  throttled_loop(rate: 2) { STDOUT << '?' }
end

spin do
  throttled_loop(interval: 1) { STDOUT << '*' }
end

suspend

Version data entries

121 entries across 121 versions & 1 rubygems

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