AsyncTransaction

class AsyncTransaction<T>(scope: CoroutineScope = GlobalScope, body: Transaction.() -> T)

Represents an asynchronous transaction.

Parameters

scope

The coroutine scope to use to execute the transaction

body

The body to execute in the transaction.

Constructors

Link copied to clipboard
fun <T> AsyncTransaction(scope: CoroutineScope = GlobalScope, body: Transaction.() -> T)

Functions

Link copied to clipboard
suspend fun execute(): T

Executes this transaction and returns the value that is casted to T.