run

fun run(@NonNull runnable: Runnable): RunTask

Implicitly constructs a new RunTask to add to the run queue.

Return

the added RunTask

Parameters

runnable

the code to add to the run queue to run once


fun run(@NonNull name: String, @NonNull runnable: Runnable): RunTask

Implicitly constructs a new RunTask to add to the run queue.

Return

the added RunTask

Parameters

name

the name of the task

runnable

the code to add to the run queue to run once