Module: Dry::Monads::Task::Mixin::Constructors

Included in:
Dry::Monads, Dry::Monads::Task::Mixin
Defined in:
lib/dry/monads/task.rb

Overview

Task constructors

Instance Method Summary collapse

Instance Method Details

#Task(&block) ⇒ Object

Builds a new Task instance.

Parameters:

  • block (Proc)

Returns:

  • Task


293
294
295
# File 'lib/dry/monads/task.rb', line 293

def Task(&block)
  Task.new(&block)
end