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

Included in:
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



305
306
307
# File 'lib/dry/monads/task.rb', line 305

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