Sha256: ad750cc772903478ef030eb3422479430922c2751a79c1caa06d18b02e9f500f

Contents?: true

Size: 211 Bytes

Versions: 1

Compression:

Stored size: 211 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'polyphony'

spin {
  10.times { |i|
    sleep 0.1;
    p i
  }
}

spin {
  puts "going to sleep..."
  sleep 1
  puts "woke up"
}.await

puts "done"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polyphony-0.19 examples/core/sleep_spawn.rb