module Dry::Monads::Lazy::Mixin

Lazy constructors

Constants

Lazy

Lazy is a twin of Task which is always executed on the current thread. The underlying mechanism provided by concurrent-ruby ensures the given computation is evaluated not more than once (compare with the built-in lazy assignement ||= which does not guarantee this).

Unit

@see Dry::Monads::Unit