interface TimeoutExecutionContext
Allows for the execution of a function with a timeout to wake blocked threads.
executeWithTimeoutInterruption |
abstract suspend fun <T> executeWithTimeoutInterruption(timeout: Duration, f: suspend () -> T): T |
CallingThreadExecutionContext |
Implementation of TimeoutExecutionContext to be used in environments which do not provide the ability to spawn threads, such as Javascript. All executions occur on the same thread as the caller. This means we cannot detect a deadlock in a test as we can on the JVM by running the test in a seperate thread. object CallingThreadExecutionContext : TimeoutExecutionContext |
ExecutorExecutionContext |
object ExecutorExecutionContext : TimeoutExecutionContext |