Module: Kernel
- Defined in:
- lib/standard_procedure/async/await.rb
Instance Method Summary collapse
Instance Method Details
#await(&block) ⇒ Object
2 3 4 5 6 |
# File 'lib/standard_procedure/async/await.rb', line 2 def await &block block.call.value.tap do |result| raise result if result.is_a? Exception end end |