run

fun run(@NonNull runnable: Runnable): Lambda

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

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 to add to the run queue.

Return

the added Lambda

Parameters

name

the name of the task

runnable

the code to add to the run queue to run once