Package-level declarations

Functions

Link copied to clipboard
fun <T : ERROR CLASS: Symbol not found for JsAny??> Deferred<T>.asPromise(): Promise<T>

Converts this deferred value to the instance of Promise.

Link copied to clipboard
suspend fun awaitCancellation(block: () -> Unit): Nothing

Extended version of awaitCancellation

Link copied to clipboard
fun <T : ERROR CLASS: Symbol not found for JsAny??> CoroutineScope.promise(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> T): Promise<T>
Link copied to clipboard
inline fun Continuation<*>.resumeWithError(error: JsError)