Can I give priority to collect when the item is ma...
# flow
s
Can I give priority to collect when the item is match the condition with oldest item? (It may emit in any time) for example:
Copy code
flow {
    emit("A1")
    delay(1000)
    emit("B1")
    delay(1000)
    emit("C1")
    delay(1000)
    emit("A2")
   
    delay(5000) 
    emit("A3")
}
    .doSomething( /* condition: same alphabet */)
    .collect {
        Log.d("TAG", it) // result A1 -> A2 -> B1 -> C1 -> A3
        delay(4000)
    }