Promise

class Promise

Constructors

Link copied to clipboard
fun Promise(executor: (resolve: (Any) -> Unit, reject: (Any) -> Unit) -> Unit)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun catch(onRejected: (reason: Any) -> Any = { it }): Promise
Link copied to clipboard
fun then(onFulfilled: (value: Any) -> Any = { it }): Promise
fun then(onFulfilled: (value: Any) -> Any, onRejected: (reason: Any) -> Any): Promise