Sha256: 3a2e7f41e9a414810595836d5c3ac0a9c667d0b001894a03ba0ecedd13a4cd04

Contents?: true

Size: 213 Bytes

Versions: 6

Compression:

Stored size: 213 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'polyphony'

trap('TERM') do
  # do nothing
end

trap('INT') do
  # do nothing
end

puts "go to sleep"
begin
  sleep
ensure
  puts "done sleeping"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
polyphony-0.41 examples/core/forever_sleep.rb
polyphony-0.40 examples/core/forever_sleep.rb
polyphony-0.39 examples/core/forever_sleep.rb
polyphony-0.38 examples/core/forever_sleep.rb
polyphony-0.36 examples/core/forever_sleep.rb
polyphony-0.34 examples/core/forever_sleep.rb