IPromiseProvider

Object fulfilling the promise.

Constructor | Methods

Constructor

IPromiseProvider()

Methods

Name

Returns

Description

then(onResolve, onReject)

IPromiseProvider

Returns a self-reference or a new Promise object.

Methods details

then

{IPromiseProvider} then(onResolve, onReject)

Returns a self-reference or a new Promise object.

Parameters:

Parameter

Default value

Description

onResolve*

—

Type: Function

Handler function that is called if the promise was fulfilled.

onReject*

—

Type: Function

Handler function that is called if the promise was not fulfilled (an error occurred).

* Mandatory parameter/option.