IPromise Interface

File
wijmo.viewer.js
Module
wijmo.viewer

Defines the interface of promise which is used for asynchronous calling.

Methods

Methods

catch

catch(onRejected?: (reason?: any)): IPromise

Call the function after a promise is rejected.

Parameters
Returns
IPromise

then

then(onFulfilled?: (value?: any), onRejected?: (reason?: any)): IPromise

Call the function after a promise is fulfilled or rejected.

Parameters
Returns
IPromise