Function

withCurrent

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

withCurrent

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.