Companion

Since Kotlin

1.3

Properties

Link copied to clipboard

Get a list of all unterminated workers.

Since Kotlin 1.3
Link copied to clipboard

Return the current worker. Worker context is accessible to any valid Kotlin context, but only actual active worker produced with Worker.start automatically processes execution requests. For other situations processQueue must be called explicitly to process request queue.

Since Kotlin 1.3

Functions

Link copied to clipboard

Create worker object from a C pointer.

Since Kotlin 1.3
Link copied to clipboard
fun start(errorReporting: Boolean = true, name: String? = null): Worker

Start new scheduling primitive, such as thread, to accept new tasks via execute interface. Typically new worker may be needed for computations offload to another core, for IO it may be better to use non-blocking IO combined with more lightweight coroutines.

Since Kotlin 1.3