Skip to content

Commit 2386667

Browse files
committed
[JS]: runInAsync 默认的调度器修改为 Dispatchers.Default
1 parent daacdcc commit 2386667

File tree

1 file changed

+2
-2
lines changed
  • runtime/suspend-transform-runtime/src/jsMain/kotlin/love.forte.plugin.suspendtrans/runtime

1 file changed

+2
-2
lines changed

runtime/suspend-transform-runtime/src/jsMain/kotlin/love.forte.plugin.suspendtrans/runtime/RunInSuspendJs.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package love.forte.plugin.suspendtrans.runtime
22

33
import kotlinx.coroutines.CoroutineScope
4+
import kotlinx.coroutines.Dispatchers
45
import kotlinx.coroutines.promise
56
import kotlin.coroutines.CoroutineContext
6-
import kotlin.coroutines.EmptyCoroutineContext
77
import kotlin.js.Promise
88

9-
private val CoroutineContext4Js: CoroutineContext = EmptyCoroutineContext
9+
private val CoroutineContext4Js: CoroutineContext = Dispatchers.Default
1010

1111
private val CoroutineScope4Js: CoroutineScope = CoroutineScope(CoroutineContext4Js)
1212

0 commit comments

Comments
 (0)