setTimeout

fun setTimeout(id: String, duration: Duration)

Registers a timeout for the given task ID.