Skip to content

Instantly share code, notes, and snippets.

View jaredmdobson's full-sized avatar
🤚
Hi

Jared Dobson jaredmdobson

🤚
Hi
  • Cedar City, UT
View GitHub Profile
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.
*