Global

Type Definitions

Listener(eventName, …args)

Parameters:
Name Type Attributes Description
eventName string
args * <repeatable>
Source:

SubscribablePromise :Promise

Object similar to a standard Promise but which can also be subscribed to to observe subsequent values Note that the standard promise methods will only handle the first calls to resolve() or reject().

Properties:
Name Type Description
then function

Equivalent to Promise.then()

listen function

Subscribes listener to the promise. Returns a function that can be called to unsubscribe

catch function

Equivalent to Promise.catch()

finally function

Equivalent to Promise.finally()

Source: