Ryan Smith
04/04/2023, 5:19 PMCasey Brooks
04/04/2023, 5:43 PMCoroutineScope
is to provide a lifetime during which coroutine operations can execute, so when thinking about how coroutineScopes relate to remote data sources, the question naturally becomes: what is the lifetime of the remote connection?
And what would you hope to gain by creating your own coroutineScope rather than exposing suspend functions or flows, thus delegating the lifetime of the remote connection to something like viewModelScope
whose lifetime you don’t have to manage yourself?Ryan Smith
04/04/2023, 6:04 PMstojan
04/04/2023, 6:08 PMPatrick Steiger
04/04/2023, 6:16 PMRyan Smith
04/04/2023, 8:52 PM