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

Shakil Karim

08/11/2019, 10:10 PM
Does this code can have any side effects i want to search parallelly from two source on text change ?
u

uli

08/12/2019, 7:31 AM
What do you mean with
side effects
?
s

Shakil Karim

08/12/2019, 7:33 AM
I mean does this code is correct or it can be made more efficient ??
u

uli

08/12/2019, 7:36 AM
There is quite some context missing. But without context i would say: •
mModel.copy(
could be replaces with a constructor
Model(
• I wonder if
_models.offer
is intentionally used or if
_models.send
is what you mean, as you are sending to a conflated channel any way and probably do not want to loose the latest update
s

Shakil Karim

08/12/2019, 9:08 AM
And what about the flatMapLatest part ?
3 Views