Kotlin coroutines handle error and implementation
问题 Using coroutines for the first time. Need help. Here is my flow: Presenter wants to login so calls Repository Interface. Repository implements RepositoryInterface. So Repository calls APIInterface. APIInterface is implemented by APIInterfaceImpl. The APIInterfaceImpl finally calls the MyRetrofitInterface. Here is the flow diagrammatically: Presenter -> Repository -> APIInterfaceImpl -> MyRetrofitInterface Once I get login response: APIInterfaceImpl -> Repository -> Stores the data in cache ->