RealmTransaction

inline fun RealmTransaction(noinline block: RealmReceiver)

Acquires an instance of current default Realm, runs the a RealmTransaction with the realm as the receiver in block. The acquired realm is closed when the function exits. If there is already an active realm instance present, consider using Realm.transact

See also