adjpd
09/02/2021, 12:10 AMCall<String>
. I'd like it to return a Flow<String>
with the least amount of boilerplate possible. How are you all doing it?James Harman
09/02/2021, 12:17 AM@GET("/path")
suspend fun getSomething(): String
adjpd
09/02/2021, 12:17 AMinterface ApiInterface {
@GET("")
suspend fun getThing():String
}
val scope = rememberCoroutineScope()
scope.launch {
val thing:String = service.getThing()
}
adjpd
09/02/2021, 12:18 AMadjpd
09/02/2021, 12:18 AMadjpd
09/02/2021, 12:18 AMhfhbd
09/02/2021, 8:56 AM