WaitCommand

class WaitCommand @JvmOverloads constructor(var duration: Double, clock: NanoClock = NanoClock.system) : Command

A command that waits the specified duration before finishing.

Parameters

duration

the duration in seconds

Constructors

Link copied to clipboard
constructor(duration: Double, clock: NanoClock = NanoClock.system)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun init()

Runs once when first scheduled.

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

Returns whether this command is finished.