Package kotlinx.coroutines.debug.junit5

Types

CoroutinesTimeout
Link copied to clipboard
annotation class CoroutinesTimeout(testTimeoutMs: Long, cancelOnTimeout: Boolean)

Coroutines timeout annotation that is similar to JUnit5's Timeout annotation. It allows running test methods in a separate thread, failing them after the provided time limit and interrupting the thread.