transaction

abstract suspend fun <R> transaction(name: String = "mls-transaction", block: suspend (context: MlsCoreCryptoContext) -> R): R

Runs a block of code inside a CoreCrypto transaction.

Return

result of the block

Parameters

name

optional name of the transaction (used for logging)

block

transaction block executed with CoreCryptoContext