schedule

fun schedule(timeToEvent: Double, message: T? = null, priority: Int = KSLEvent.DEFAULT_PRIORITY, name: String? = null): KSLEvent<T>(source)

Allows event actions to more conveniently schedule themselves

Return

the scheduled event

Parameters

timeToEvent

the time until the next action

priority

the priority of the action

message

a general object to attach to the action

name

a name to associate with the event for the action


fun schedule(timeToEvent: GetValueIfc, message: T? = null, priority: Int = KSLEvent.DEFAULT_PRIORITY, name: String? = null): KSLEvent<T>(source)