Companion

Functions

Link copied to clipboard
fun seconds(seconds: Int, cancelOnTimeout: Boolean = false, enableCoroutineCreationStackTraces: Boolean = true): CoroutinesTimeout
fun seconds(seconds: Long, cancelOnTimeout: Boolean = false, enableCoroutineCreationStackTraces: Boolean = true): CoroutinesTimeout

Creates CoroutinesTimeout rule with the given timeout in seconds.