runAsync

inline fun runAsync(isDaemon: Boolean = false, crossinline runnable: suspend () -> Unit)(source)

Runs provided task on another thread without ThreadContext, which provides better performance.

Parameters

isDaemon

Whether the thread is a daemon

runnable

The code to be run