taskarian
Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • E

  • T

Hierarchy

  • Task

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private fn

fn: Computation<E, T>

Methods

andThen

  • andThen<A>(f: function): Task<E, A>
  • Type parameters

    • A

    Parameters

    • f: function
        • (t: T): Task<E, A>
        • Parameters

          • t: T

          Returns Task<E, A>

    Returns Task<E, A>

fork

map

  • map<A>(f: function): Task<E, A>
  • Type parameters

    • A

    Parameters

    • f: function
        • (t: T): A
        • Parameters

          • t: T

          Returns A

    Returns Task<E, A>

mapError

  • mapError<X>(f: function): Task<X, T>
  • Type parameters

    • X

    Parameters

    • f: function
        • (err: E): X
        • Parameters

          • err: E

          Returns X

    Returns Task<X, T>

orElse

  • orElse<X>(f: function): Task<X, T>
  • Type parameters

    • X

    Parameters

    • f: function
        • (err: E): Task<X, T>
        • Parameters

          • err: E

          Returns Task<X, T>

    Returns Task<X, T>

Static fail

  • fail<E, T>(err: E): Task<E, T>
  • Type parameters

    • E

    • T

    Parameters

    • err: E

    Returns Task<E, T>

Static succeed

  • succeed<E, T>(t: T): Task<E, T>
  • Type parameters

    • E

    • T

    Parameters

    • t: T

    Returns Task<E, T>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc