Tracker

class Tracker(debounceTimeout: Long)

tracks running transactions (e.g. inside a Store)

Parameters

debounceTimeout

denounces values in the Flow of running transaction by this value

Constructors

Link copied to clipboard
constructor(debounceTimeout: Long)

Properties

Link copied to clipboard

Represents the current transaction which is running or null.

Link copied to clipboard
val data: Flow<Boolean>

Gives a Flow to check if a transaction is running.

Functions

Link copied to clipboard
suspend fun <T> track(operation: suspend () -> T): T

Tracks a given operation.