You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both of these are callback based and it would be nice to have coroutines equivalents. Something like:
fun DocumentReference.toFlow(): Flow<DocumentSnapShot> {
TODO()
}
fun Query.toFlow(): Flow<QuerySnapShot> {
TODO()
}
How would you use it?
This would be useful to leverage coroutines to make the code look nicer. Also it can be used together with coroutines scopes to bind Firestore queries to the Android lifecycle.
The text was updated successfully, but these errors were encountered:
Also looking forward to this! I'm using my own implementations of toFlow() for DocumentReference and Query but would really like to use some official solution :)
What feature would you like to see?
Firestore has DocumentReference.addSnapshotListener and Query.addSnapshotListener.
Both of these are callback based and it would be nice to have coroutines equivalents. Something like:
How would you use it?
This would be useful to leverage coroutines to make the code look nicer. Also it can be used together with coroutines scopes to bind Firestore queries to the Android lifecycle.
The text was updated successfully, but these errors were encountered: