run

fun run(@NonNull runnable: Runnable): Lambda

Implicitly constructs a new Lambda and adds it to the run queue.

Note: You do not need to call add on this task, it is called for you automatically.

Return

the added Lambda

Parameters

runnable

the code to add to the run queue to run once


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

Implicitly constructs a new Lambda and adds it to the run queue.

Note: You do not need to call add on this task, it is called for you automatically.

Return

the added Lambda

Parameters

name

the name of the task

runnable

the code to add to the run queue to run once