buildTask

abstract fun buildTask(task: Runnable): Task.Builder

Creates a new task builder that will execute the given task.

This is the recommended method for scheduling tasks, as it is easier to use, and provides a more conventional way of scheduling tasks that should be more familiar to most users.

If more fine-grained control over the scheduling of a task is required, the submitTask method should be used instead.

Return

a new task builder

Parameters

task

the task to execute