Skip to content

Commit 50a4d86

Browse files
authored
Add missing @DelicateCoroutinesApi (#4116)
1 parent 7cd3a0e commit 50a4d86

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

kotlinx-coroutines-core/concurrent/src/MultithreadedDispatchers.common.kt

+1
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ public fun newSingleThreadContext(name: String): CloseableCoroutineDispatcher =
5959
* @param name the base name of the created threads.
6060
*/
6161
@ExperimentalCoroutinesApi
62+
@DelicateCoroutinesApi
6263
public expect fun newFixedThreadPoolContext(nThreads: Int, name: String): CloseableCoroutineDispatcher

kotlinx-coroutines-core/native/src/MultithreadedDispatchers.kt

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import kotlin.native.concurrent.*
1111
import kotlin.time.*
1212
import kotlin.time.Duration.Companion.milliseconds
1313

14+
@DelicateCoroutinesApi
1415
public actual fun newFixedThreadPoolContext(nThreads: Int, name: String): CloseableCoroutineDispatcher {
1516
require(nThreads >= 1) { "Expected at least one thread, but got: $nThreads" }
1617
return MultiWorkerDispatcher(name, nThreads)

0 commit comments

Comments
 (0)