JsPromiseHandle

A promise the host controls: hand promise to the script, settle it when you are ready.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun reject(reason: Any?)

Rejects the promise with reason.

Link copied to clipboard
fun resolve(value: Any?)

Settles the promise with value. Later calls do nothing, as in a script.