wait

Implicitly constructs a new WaitTask and adds it to the run queue.

Note: You do not need to call add on this task, it is called for you automatically.

Return

the added WaitTask

Parameters

duration

the duration to wait


fun wait(duration: Double, @NonNull unit: Time): WaitTask

Implicitly constructs a new WaitTask and adds it to the run queue.

Note: You do not need to call add on this task, it is called for you automatically.

Return

the added WaitTask

Parameters

duration

the duration to wait

unit

the unit of the duration