This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.realm.* | |
import io.realm.kotlin.toFlow | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.flow.* | |
/** | |
* Returns a [Flow] with all of the results of the [RealmQuery], while drops every offer that is not | |
* loaded already. This makes it easy to be used with [kotlinx.coroutines.flow.first]. Be aware that | |
* the [Realm] object must be on a thread with a looper. | |
* |