Tasks

object Tasks(source)

Starts bounded cooperative work within the current VM.

Functions

Link copied to clipboard
external fun launch(block: () -> Unit): Task

Starts block and returns its task handle.

Link copied to clipboard
fun sleepTicks(ticks: Int)

Suspends the current task for at least ticks server ticks.