Sha256: 72966db60bb46fea54955b4572904d95b24816d5d8831db97d5cdade8aed420f

Contents?: true

Size: 232 Bytes

Versions: 73

Compression:

Stored size: 232 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'polyphony'

def process
  p :b_start
  sleep 1
  p :b_stop
end

spin do
  p :a_start
  spin { process }
  sleep 60
  p :a_stop
end

p :main_start
sleep 120
p :main_stop

Version data entries

73 entries across 73 versions & 1 rubygems

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