We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e084cf7 commit 03a266aCopy full SHA for 03a266a
js/kotlinx-coroutines-core-js/src/main/kotlin/kotlinx/coroutines/experimental/Promise.kt
@@ -71,7 +71,7 @@ public fun <T> Deferred<T>.asPromise(): Promise<T> {
71
public fun <T> Promise<T>.asDeferred(): Deferred<T> {
72
val deferred = asDynamic().deferred
73
@Suppress("UnsafeCastFromDynamic")
74
- return deferred ?: async { await() }
+ return deferred ?: async(start = CoroutineStart.UNDISPATCHED) { await() }
75
}
76
77
/**
0 commit comments