DelayTask

class DelayTask(var delay: Int) : Task

Pause for a specified amount of time in a queue

Parameters

delay

Amount of time to delay in milliseconds

Constructors

Link copied to clipboard
constructor(delay: Int)

Properties

Link copied to clipboard
var delay: Int
Link copied to clipboard
var t: Long

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.