Type Definitions
Listener(eventName, …args)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
eventName |
string | ||
args |
* |
<repeatable> |
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 |
listen |
function |
Subscribes listener to the promise. Returns a function that can be called to unsubscribe |
catch |
function |
Equivalent to |
finally |
function |
Equivalent to |