Documentation
Reference
2.1.50 (current version)
collection
interactivityModel
Interfaces

IPromiseProvider

Object fulfilling the promise.

Constructor | Methods

Constructor

IPromiseProvider()

Methods

NameReturnsDescription
then(onResolve, onReject)

IPromiseProvider

Returns a self-reference or a new Promise object.

Methods details

then

Returns a self-reference or a new Promise object.

Parameters:

ParameterDefault valueDescription
onResolve*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Function

Handler function that is called if the promise was fulfilled.

onReject*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Function

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

* Mandatory parameter/option.