observe

abstract fun observe(): Flow<RealmResults<T>>

Observe changes to the RealmResult. If there is any change to objects represented by the query backing the RealmResult, the flow will emit the updated RealmResult. The flow will continue running indefinitely until canceled.

The change calculations will on on the thread represented by RealmConfiguration.notificationDispatcher.

Return

a flow representing changes to the RealmResults.