Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Deferral<T>

A class that is an "inside-out" FunPromise: the resolve and reject functions from the callback are exposed as properties, and are therefore able to be called by caller's code.

Note that after the first call to either resolve or reject, the underlying promise is settled. Any subsequent call to either resolve or reject is guaranteed to be a no-op.

Type parameters

  • T

Hierarchy

  • Deferral

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly promise

promise: FunPromise<T>

The promise whose state is determined by resolve and reject.

Methods

reject

resolve

Generated using TypeDoc