asFlow

abstract override fun asFlow(): Flow<RealmResults<T>>

Observe changes to the RealmResult. If there is any change to objects represented by the query backing the RealmResults, 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 Configuration.SharedBuilder.notificationDispatcher.

Return

a flow representing changes to the RealmResults.