context Bounded Run Async
inline fun contextBoundedRunAsync(name: String = "Worker Thread #", isDaemon: Boolean = false, crossinline runnable: ThreadContext.() -> Unit)(source)
Runs provided task on another thread, with ThreadContext. This should not be used if called lots of times, e.g. in a loop, because creating of numerous ThreadContexts might cause a memory leak, in that case it is recommended to use runAsync, which is more lightweight
Parameters
name
Name of the new thread
is Daemon
Whether the thread should be a daemon
runnable
The task to be executed