start

fun start(errorReporting: Boolean = true, name: String? = null): Worker(source)

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

Return

worker object, usable across multiple concurrent contexts.

Parameters

errorReporting

controls if an uncaught exceptions in the worker will be reported.

name

defines the optional name of this worker, if none - default naming is used.