ForkTask

class ForkTask(val task1: Task, val task2: Task) : Task

Runs two tasks concurrently. Will wait for both tasks to complete before moving on. This can be used with TaskList for complex behavior

Parameters

task1
task2

See also

Constructors

Link copied to clipboard
constructor(task1: Task, task2: Task)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val task1: Task
Link copied to clipboard
val task2: Task

Functions

Link copied to clipboard
open fun kill()

Used to stop tasks part of the way through.

Link copied to clipboard
open override fun loop(): Boolean

Called every loop cycle of the queue. Returning true moves on to next task.

Link copied to clipboard
open override fun onBegin(): Boolean

Called when task is started. Returning false will skip the task.