File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
ktor-server-cio/posix/src/io/ktor/server/cio/internal
ktor-server-core/posix/src/io/ktor/server/engine/internal
ktor-server-test-host/posix/src/io/ktor/server/testing/internal Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ package io.ktor.server.cio.internal
77import kotlinx.coroutines.*
88
99internal actual val Dispatchers .IOBridge : CoroutineDispatcher
10- get() = Default
10+ get() = IO
Original file line number Diff line number Diff line change @@ -9,10 +9,12 @@ import io.ktor.server.engine.*
99import kotlinx.cinterop.*
1010import kotlinx.coroutines.*
1111import platform.posix.*
12+ import kotlin.experimental.*
1213
13- internal actual fun availableProcessorsBridge (): Int = 1
14+ @OptIn(ExperimentalNativeApi ::class )
15+ internal actual fun availableProcessorsBridge (): Int = Platform .getAvailableProcessors()
1416
15- internal actual val Dispatchers .IOBridge : CoroutineDispatcher get() = Default
17+ internal actual val Dispatchers .IOBridge : CoroutineDispatcher get() = IO
1618
1719@OptIn(ExperimentalForeignApi ::class )
1820internal actual fun printError (message : Any? ) {
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ package io.ktor.server.testing.internal
66
77import kotlinx.coroutines.*
88
9- internal actual val Dispatchers .IOBridge : CoroutineDispatcher get() = Default
9+ internal actual val Dispatchers .IOBridge : CoroutineDispatcher get() = IO
1010
1111internal actual fun <T > maybeRunBlocking (block : suspend CoroutineScope .() -> T ): T = runBlocking(block = block)
You can’t perform that action at this time.
0 commit comments