await

fun await(): Int(source)

Wait for a newly sampled change; zero is a valid result.


fun await(level: Int): Int(source)

Completes immediately if the current sample equals level.