PromiseLike

interface PromiseLike<out T : JsAny?> : PromiseResult<T> (source)

Inheritors

Functions

Link copied to clipboard
open inline suspend override fun await(): T
Link copied to clipboard
abstract fun <R : JsAny?> flatThen(onFulfilled: (T) -> PromiseResult<R>): PromiseLike<R>
abstract fun <R : JsAny?> flatThen(onFulfilled: (T) -> PromiseResult<R>, onRejected: (JsErrorLike?) -> PromiseResult<R>): PromiseLike<R>
Link copied to clipboard
abstract fun <R : JsAny?> then(onFulfilled: (T) -> R): PromiseLike<R>
abstract fun <R : JsAny?> then(onFulfilled: (T) -> R, onRejected: (JsErrorLike?) -> R): PromiseLike<R>
Link copied to clipboard
open inline fun thenTo(continuation: Continuation<T>)
Link copied to clipboard
inline fun <T : JsAny?> PromiseResult<T>.toPromise(): Promise<T>
Link copied to clipboard
suspend fun <T> PromiseLike<T>.toResult(): Result<T>