class Dry::Effects::Effects::Async
Constants
- Async
- Await
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/dry/effects/effects/async.rb, line 13 def initialize super module_eval do define_method(:async) { |&block| ::Dry::Effects.yield(Async.(block)) } define_method(:await) { |task| ::Dry::Effects.yield(Await.(task)) } end end