Super simple question. I need to remove a firestore snapshot listener once I hit a certain point inside of my listener. Seems like this should be super easy but I can't figure it out. Thanks!
Example code:
val registration = gameRef.addSnapshotListener { snapshot, e ->
//code....
//if(condition is meet){
// destroy this listener
//}
}