Lambda

constructor(@NonNull callback: Consumer<Task>)

Run the given callback immediately.

Parameters

callback

The callback to run, taking in an instance of the current task


constructor(@NonNull callback: Runnable)
constructor(@NonNull callback: () -> Unit)

Run the given callback immediately.

Parameters

callback

The callback to run


constructor()

Run nothing and complete, this is useful as a placeholder task.