Package-level declarations

Types

Link copied to clipboard
expect class WeakTimeoutQueue(timeoutMillis: Long, clock: () -> Long = { getTimeMillis() })
actual class WeakTimeoutQueue(val timeoutMillis: Long, clock: () -> Long)

It provides ability to cancel jobs and schedule coroutine with timeout. Unlike regular withTimeout this implementation is never scheduling timer tasks but only checks for current time. This makes timeout measurement much cheaper and doesn't require any watchdog thread.

actual class WeakTimeoutQueue(val timeoutMillis: Long, clock: () -> Long)