https://kotlinlang.org logo
#coroutines
Title
# coroutines
w

Wilson Castiblanco

08/07/2019, 11:20 PM
Hello guys! I have these two implementations in a
DeepLinkPresenter
. Which of those are the "best" approach having in mind the CoroutineScope implementation.
d

Dominaezzz

08/08/2019, 12:10 AM
I generally prefer the first one since you keep the
CoroutineScope
private but I'd pass the dispatchers directly as supposed to putting it in the scope, then you'd only have one scope (which you should).
2 Views