Do I understand correctly that in this snippet flo...
# coroutines
d
Do I understand correctly that in this snippet flow2 will begin collection only after flow1 is finished (after approximately 3 sec)?
Copy code
val flow1 = flowOf { emit(1); delay(3000); emit(2) }
launch {
  flow1.collect()
  flow2.collect()
}
j
Yes, if you want concurrent collection you need 2 different coroutines (2 launch, or 1 launch and 1 in the top level code)
d
yep, thanks! wanted to check my understanding just in case 🙂