join

expect fun join(timeout: Duration): Boolean(source)

Blocks the calling thread until this background thread completes or timeout elapses.

Returns true if the thread completed, false if it is still running once timeout elapses (for example because of a deadlock).

actual fun join(timeout: ERROR CLASS: Symbol not found for Duration): Boolean(source)
actual fun join(timeout: Duration): Boolean(source)

Blocks the calling thread until this background thread completes or timeout elapses.

Returns true if the thread completed, false if it is still running once timeout elapses (for example because of a deadlock).