Is there a way or an example of using Realm databa...
# coroutines
t
Is there a way or an example of using Realm database with coroutines?
t
Thanks, I will check it out
Hi @mbonnin, I am getting an error if I use
findAllAwait()
more than once in thesame session, do you have idea what I am doing wrong?
Copy code
ava.lang.IllegalStateException: Already resumed, but proposed with update
Copy code
at void kotlinx.coroutines.CancellableContinuationImpl.alreadyResumedError(java.lang.Object) (CancellableContinuationImpl.kt:244)`
m
No idea, this was the first result when I typed "realm coroutines" in google ­čśä
t
Ha.. Okay thanks
m
I wouldn't be surprised if queries are not reusable. Apollo-android doesn't allow query reuse for an example
t
I think the error has to do with coroutine specifically though
It happens on this line:
Copy code
val listener = RealmChangeListener<RealmResults<T>> { t -> continuation.resume(t) }