Skip to content

Commit dcec63a

Browse files
author
mkovalenkov
committed
Supervisor job
1 parent 6dce2e8 commit dcec63a

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import kotlinx.coroutines.Dispatchers
55
import kotlinx.coroutines.promise
66
import kotlin.coroutines.CoroutineContext
77
import kotlin.js.Promise
8+
import kotlinx.coroutines.SupervisorJob
89

9-
private val CoroutineContext4Js: CoroutineContext = Dispatchers.Default
10+
private val CoroutineContext4Js: CoroutineContext = Dispatchers.Default + SupervisorJob()
1011

1112
private val CoroutineScope4Js: CoroutineScope = CoroutineScope(CoroutineContext4Js)
1213

0 commit comments

Comments
 (0)