RealmFunction

inline fun <T> RealmFunction(block: RealmFunction<T>): T

Acquires an instance of current default Realm, runs the given block with the realm and returns the result. The acquired realm is closed before the function exits.