Harun
10/31/2018, 10:34 AMgildor
10/31/2018, 10:34 AMgildor
10/31/2018, 10:34 AMGlobalScope.launch
gildor
10/31/2018, 10:35 AMHarun
10/31/2018, 10:42 AMgildor
10/31/2018, 10:44 AMgildor
10/31/2018, 10:44 AMgildor
10/31/2018, 10:44 AMgildor
10/31/2018, 10:45 AMgildor
10/31/2018, 10:45 AMgildor
10/31/2018, 10:45 AMgotoOla
10/31/2018, 10:47 AMHarun
10/31/2018, 10:47 AMgotoOla
10/31/2018, 10:47 AMHarun
10/31/2018, 10:50 AMgildor
10/31/2018, 10:55 AMWhen it comes to backend services that are running within a docker containerIt’s not related to docker or type of your hardware. It depends only on coroutine lifecycle. Even for BE it make sense to limit lifecycle of coroutine in some cases, like coroutine has request lifecycle If all your coroutines are global and should be stopped only when app is killed than no, no difference, use global ones
gildor
10/31/2018, 10:56 AMThe problem i had with coroutineScope is that it requires to be called from a suspending functionI don’t understand what is your problem. Sure, you need it only in suspend function because this block is suspend while running child coroutines. You can create instance of scope using constructor instead if you want. But you don’t need it if you have some lifecycle-aware component (like Android Activity/Fragment/ViewModel) Anyway. check guides and examples first, they should answer on most of you questions
Harun
10/31/2018, 11:00 AMacando86
11/01/2018, 10:12 AM