Skip to content

Commit 045e52f

Browse files
committed
Fix warnings
1 parent 80ef17e commit 045e52f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: kotlinx-coroutines-core/common/src/internal/DispatchedContinuation.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ internal fun DispatchedContinuation<Unit>.yieldUndispatched(): Boolean =
290290
* [doYield] indicates whether current continuation is yielding (to provide fast-path if event-loop is empty).
291291
* Returns `true` if execution of continuation was queued (trampolined) or `false` otherwise.
292292
*/
293-
private inline fun DispatchedContinuation<*>.executeUnconfined(
293+
private fun DispatchedContinuation<*>.executeUnconfined(
294294
contState: Any?, mode: Int, doYield: Boolean = false,
295-
noinline block: () -> Unit
295+
block: () -> Unit
296296
): Boolean {
297297
assert { mode != MODE_UNINITIALIZED } // invalid execution mode
298298
val eventLoop = ThreadLocalEventLoop.unconfinedEventLoop

Diff for: kotlinx-coroutines-core/native/src/Dispatchers.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package kotlinx.coroutines
22

33
import kotlin.coroutines.*
4-
import kotlin.native.concurrent.Worker
54

65

76
public actual object Dispatchers {
@@ -48,7 +47,7 @@ internal object DefaultIoScheduler : CoroutineDispatcher() {
4847
override fun toString(): String = "Dispatchers.IO"
4948
}
5049

51-
internal inline fun scheduleBackgroundIoTask(block: Runnable) = DefaultIoScheduler.dispatchToUnlimitedPool(block)
50+
internal fun scheduleBackgroundIoTask(block: Runnable) = DefaultIoScheduler.dispatchToUnlimitedPool(block)
5251

5352
@Suppress("EXTENSION_SHADOWED_BY_MEMBER")
5453
public actual val Dispatchers.IO: CoroutineDispatcher get() = IO

0 commit comments

Comments
 (0)