runTransaction

suspend fun <T> runTransaction(strategy: KSerializer<T>, buildSettings: EncodeDecodeSettingsBuilder.() -> Unit = {}, transactionUpdate: (currentData: T) -> T): DataSnapshot(source)

Run a transaction on the data at this location.

Parameters

handler

An object to handle running the transaction