kotlin-extensions / io.realm.kotlin / io.realm.RealmResults

Extensions for io.realm.RealmResults

toFlow

Returns a Flow that monitors changes to this RealmResults. It will emit the current RealmResults when subscribed to. RealmResults will continually be emitted as the RealmResults are updated - onCompletion will never be called.

fun <T : RealmModel> RealmResults<T>.toFlow(): Flow<RealmResults<T>>