Options
All
  • Public
  • Public/Protected
  • All
Menu

Type class instances provided by default for Future.

Hierarchy

  • FutureInstances

Implements

Index

Properties

followedBy

followedBy: function

Type declaration

followedByL

followedByL: function

Type declaration

    • <A, B>(fa: FutureK<A>, fb: function): Future<B>
    • Type parameters

      • A

      • B

      Parameters

      Returns Future<B>

forEffect

forEffect: function

Type declaration

forEffectL

forEffectL: function

Type declaration

    • <A, B>(fa: FutureK<A>, fb: function): Future<A>
    • Type parameters

      • A

      • B

      Parameters

      Returns Future<A>

product

product: function

Type declaration

Static global

global: FutureInstances = new FutureInstances()

Methods

ap

attempt

  • attempt<A>(fa: FutureK<A>): Future<Either<Throwable, A>>

coflatMap

  • coflatMap<A, B>(fa: FutureK<A>, ff: function): Future<B>

coflatten

  • coflatten<A>(fa: FutureK<A>): Future<Future<A>>

flatMap

  • flatMap<A, B>(fa: FutureK<A>, f: function): Future<B>

map

  • map<A, B>(fa: FutureK<A>, f: function): Future<B>
  • Type parameters

    • A

    • B

    Parameters

    • fa: FutureK<A>
    • f: function
        • (a: A): B
        • Parameters

          • a: A

          Returns B

    Returns Future<B>

map2

  • map2<A, B, Z>(fa: FutureK<A>, fb: FutureK<B>, f: function): Future<Z>
  • Type parameters

    • A

    • B

    • Z

    Parameters

    • fa: FutureK<A>
    • fb: FutureK<B>
    • f: function
        • (a: A, b: B): Z
        • Parameters

          • a: A
          • b: B

          Returns Z

    Returns Future<Z>

pure

  • pure<A>(a: A): Future<A>
  • Type parameters

    • A

    Parameters

    • a: A

    Returns Future<A>

raise

  • raise<A>(e: Throwable): Future<A>
  • Type parameters

    • A

    Parameters

    • e: Throwable

    Returns Future<A>

recover

  • recover<A>(fa: FutureK<A>, f: function): Future<A>
  • Type parameters

    • A

    Parameters

    • fa: FutureK<A>
    • f: function
        • (e: Throwable): A
        • Parameters

          • e: Throwable

          Returns A

    Returns Future<A>

recoverWith

  • recoverWith<A>(fa: FutureK<A>, f: function): Future<A>

tailRecM

  • tailRecM<A, B>(a: A, f: function): Future<B>
  • Type parameters

    • A

    • B

    Parameters

    • a: A
    • f: function
        • Parameters

          • a: A

          Returns FutureK<Either<A, B>>

    Returns Future<B>

unit

  • unit(): Future<void>

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