BackgroundThread

expect class BackgroundThread(source)

A unit of work started on a real, separate thread by startBackgroundThread.

actual class BackgroundThread(source)

A unit of work started on a real, separate thread by startBackgroundThread.

actual class BackgroundThread(source)

A unit of work started on a real, separate thread by startBackgroundThread.

Constructors

Link copied to clipboard
constructor(thread: Thread)
constructor(worker: Worker, future: Future<Unit>)

Functions

Link copied to clipboard
expect fun join(timeout: Duration): Boolean

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

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

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