Sha256: 670593413c6a2aba227c0931802b2ea12db05cfd93f8e7bfc639f0429364e5ae
Contents?: true
Size: 372 Bytes
Versions: 5
Compression:
Stored size: 372 Bytes
Contents
# frozen_string_literal: true require 'bundler/setup' require 'polyphony' def error(t) raise "hello #{t}" end def deferred_error(t) puts "deferred_error" defer { 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 suspend suspend
Version data entries
5 entries across 5 versions & 1 rubygems