start

open fun start(@NonNull name: String, @NonNull task: Runnable)

Start a new thread with the given task.

Parameters

name

the name of the thread to access it later and to log as

task

the runnable task to run on the new thread


open fun start(@NonNull task: Runnable)

Start a new thread with the given task. The thread name will be defined by the class of the Runnable.

Parameters

task

the runnable task to run on the new thread