Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Promise<A>

Created by rburson on 3/6/15.

Type parameters

  • A

Hierarchy

  • Promise

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Promise(label: string): Promise
  • Parameters

    • label: string

    Returns Promise

Properties

Private _future

_future: Future<A>

Accessors

future

  • Returns Future<A>

Methods

complete

  • Parameters

    Returns Promise<A>

failure

  • failure(error: any): void
  • Parameters

    • error: any

    Returns void

isComplete

  • isComplete(): boolean
  • --------------------- PUBLIC ------------------------------

    Returns boolean

success

  • success(value: A): void
  • Parameters

    • value: A

    Returns void

Generated using TypeDoc