Skip to content

Commit

Permalink
Make provokeThreadSwitch internal and non-suspending
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverO2 committed Aug 31, 2023
1 parent 709d8b1 commit 63c927a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package com.sksamuel.kotest.engine.coroutines

/**
* Provoke the dispatcher to switch coroutine threads by keeping the coroutine alive for a sufficient time period.
*
* This function is not suspending, but intended to be invoked in a coroutine exclusively.
*/
@Suppress("RedundantSuspendModifier")
suspend fun provokeThreadSwitch() {
@Suppress("BlockingMethodInNonBlockingContext")
internal fun provokeThreadSwitch() {
Thread.sleep(50)
}

0 comments on commit 63c927a

Please sign in to comment.