await

expect fun await(timeout: Duration = Duration.INFINITE): Duration

Causes the current thread to wait until it is signalled or interrupted, or the specified waiting time elapses.

Return

an estimate of the timeout value minus the time spent waiting upon return from this method. A positive value may be used as the argument to a subsequent call to this method to finish waiting out the desired time. A value less than or equal to zero indicates that no time remains.

Parameters

timeout

the maximum time to wait.

actual fun await(timeout: Duration): Duration
actual fun await(timeout: Duration): Duration
actual fun await(timeout: Duration): Duration
actual fun await(timeout: Duration): Duration