Skip to content

Commit 415cee1

Browse files
committed
Confirm usage of delicate coroutine with opt in
1 parent 0da5163 commit 415cee1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/com/lambda/client/util/threads/CoroutineUtils.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import kotlinx.coroutines.CoroutineScope
44
import kotlinx.coroutines.Dispatchers
55
import kotlinx.coroutines.Job
66
import kotlinx.coroutines.newSingleThreadContext
7+
import kotlinx.coroutines.DelicateCoroutinesApi
78

89
/**
910
* Single thread scope to use in Lambda
1011
*/
11-
@Suppress("EXPERIMENTAL_API_USAGE")
12+
@OptIn(DelicateCoroutinesApi::class)
1213
val mainScope = CoroutineScope(newSingleThreadContext("Lambda Main"))
1314

1415
/**

0 commit comments

Comments
 (0)