PromiseLike

external interface PromiseLike<out T> : PromiseResult<T> (source)

Inheritors

Functions

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