This is extremely useful for one-time requests such as Callbacks like 'addOnCompleteListener'.
For realtime updates I looked further into the 'suspendCancellableCoroutine' to build a simple pattern for realtime updates like 'addSnapshotListener'. I outlined the pattern in this StackOverflow post.
This is extremely useful for one-time requests such as Callbacks like 'addOnCompleteListener'.
For realtime updates I looked further into the 'suspendCancellableCoroutine' to build a simple pattern for realtime updates like 'addSnapshotListener'. I outlined the pattern in this StackOverflow post.
GitHub Post - stackoverflow.com/a/58786712/2253682