Firebase – FireStore Tasks.whenAllComplete with Coroutines
I want to implement this code synchronously but job.join, deferred.await, and firebase await, not working. Does anyone know a solution? CoroutineScope(Dispatchers.Main).launch { val job = launch { Tasks.whenAllComplete(tasks) .addOnCompleteListener { Log.d("user-get", "on-0-> addOnComplete") tasks.forEach { task -> val snapshot =…