HarryPulvirenti
10/21/2019, 8:34 AMsuspend fun findLocation() = coroutineScope {
locationDelegate.checkSettings().flatMap {
locationDelegate.getLocation()
}
}
In this sample, I can’t call locationDelegate.getLocation()
since the getLocation()
is a suspend function. How can I handle suspend functions in flatMap
since it is not an inline function?raulraja
10/21/2019, 9:11 AMHarryPulvirenti
10/21/2019, 9:23 AMIO
raulraja
10/21/2019, 9:26 AMraulraja
10/21/2019, 9:26 AMHarryPulvirenti
10/21/2019, 9:49 AM