withCurrent

Function

Common
public inline fun <T : StateRecord, R> T.withCurrent(block: (r: T) -> R): R

Provides a block with the current record, without notifying any read observers.