observe

abstract fun observe(): Flow<Realm>

Observe changes to the Realm. If there is any change to the Realm, the flow will emit the updated Realm. The flow will continue running indefinitely until canceled.

The change calculations will run on the thread defined by RealmConfiguration.notificationDispatcher.

Return

a flow representing changes to this Realm.