Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun <T> any(values: JsIterable<PromiseResult<T>>): Promise<T>
Link copied to clipboard
fun <T> flatTry(block: () -> PromiseResult<T>): Promise<T>
Link copied to clipboard
Link copied to clipboard
fun reject(reason: JsError): Promise<Nothing>
Link copied to clipboard
fun <T> resolve(value: T): Promise<T>
fun <T> resolve(value: PromiseResult<T>): Promise<T>
Link copied to clipboard
fun <T> try(block: () -> T): Promise<T>
Link copied to clipboard