<Using a flow builder and asFlow error that should...
# stackoverflow
u
Using a flow builder and asFlow error that should call from suspend function I have the following interface to fetch recipes interface FoodService { @GET(EndPoint.COMPLEX_SEARCH) suspend fun fetchComplexSearch(@Query("apiKey") apiKey: String): ResultModel } This works find using a flow builder override fun complexSearch(apiKey: String): Flow { return flow { val resultModel = foodService.fetchComplexSearch(apiKey) val listOfComplexSearchEntity = resultModel.results.map { complexSearchModel ->...