restart

open fun restart(task: Runnable)

Restart a specific task by stopping it and then starting it again.

Parameters

task

the task to restart, must be managed by Threads


open fun restart(task: String)

Restart a specific task by stopping it and then starting it again.

Parameters

task

the name of the task to restart, must be managed by Threads