Sha256: 71d6a8e04cea09ef8e16e3f9e03ca22a7f42ac38df53c935038955fde02d14f7

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'polyphony'

def error(t)
  raise "hello #{t}"
end

def deferred_error(t)
  snooze
  de2(t)
end

def de2(t)
  snooze
  error(t)
end

def spin_with_error
  spin { error(4) }
end

spin do
  spin do
    spin do
      deferred_error(3)
    end.await
  end.await
end.await

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polyphony-0.23 examples/core/spin_error_backtrace.rb