John O'Reilly
09/29/2020, 7:12 PMcollectsflowJohn O'Reilly
09/29/2020, 7:13 PMGlobalScopefun fetchPeople(success: (List<Assignment>) -> Unit) {
        GlobalScope.launch(Dispatchers.Main) {
            fetchPeopleAsFlow()?.collect {
                success(it)
            }
        }
    }John O'Reilly
09/29/2020, 7:15 PMflowankushg
09/29/2020, 7:36 PMJohn O'Reilly
09/29/2020, 7:39 PMankushg
09/29/2020, 7:40 PM