sample

inline fun <R> sample(body: SampleScope.() -> R): R(source)

Introduces a context from which behaviors and states can be sampled.