Skip to content
moojor224 edited this page Jul 24, 2024 · 2 revisions

Task

Class overview

Constructor

public Task(Runnable init, Supplier<Boolean> task);

creates a Task with a one-time initializer function and periodic task function


public Task(Supplier<Boolean> task);

creates a Task with a periodic task function


Methods

public boolean execute();

calls the Task's initialization function if it hasn't been run yet, then calls the Task's task function

TaskList - run multiple tasks in order

Task - a task

ParallelTask - run multiple tasks in parallel

Clone this wiki locally