Options
All
  • Public
  • Public/Protected
  • All
Menu

An AsyncValue provides a promise and as soon as the promise resolves or rejects, also exposes the returned value or error. It is useful for accessing a promise value in a synchronous context.

Type parameters

  • TValue

Hierarchy

  • AsyncValue

Index

Constructors

Properties

Constructors

constructor

  • new AsyncValue(promise: Promise<TValue>, value?: TValue, error?: Error): AsyncValue

Properties

Optional error

error: Error

promise

promise: Promise<TValue>

Optional value

value: TValue

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • 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