-
Notifications
You must be signed in to change notification settings - Fork 1.9k
shared flow collectLatest not working as expected #3162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Aren't the 3 "samples" all the same? 🤔 |
output is different, I have printed output either. |
But why copy exactly the same code 3 times? This is just adding noise, and decreases the likelihood that people will try to understand the issue you have. This, plus referencing this issue in other unrelated issues is not the best way to attract the attention you're looking for. For this issue, I suggest that you make a new one that clearly shows the expected output and the actual output, without duplicating code unnecessarily, and maybe by being thorough about this, you'll find out, before hitting the submit button, whether it's an actual issue in kotlinx.coroutines, or if your understanding was incomplete and improved in the process. Personally speaking, it happened to me a few times that I was writing an issue, and in the process, realized my mistake or how I was having incorrect expectations. |
Last thing, please, don't quote the message you're replying to when it's the message just above, I get that Kotlin's philosophy is to be explicit, but sometimes, in natural language, we can't save some lines to read 😉 |
each sample is different,
for both sample1 and sample2, I expected the same output which didn't happen. can you explain why it doesn't print anything in sample2? @LouisCAD |
@Manideepkota0708 It sucks when someone doesn't read your question and railroads your thread. 😢 This one was extra fun:
|
I even created a new one #3188, he has given an explanation but didn't get it what he was saying. Just left it @BarryFruitman |
sample 1:
output :
launch1: ONE
launch1: TWO
launch2: TWO
sample 2:
output:(nothing)
sample 3:
output: (i didn't understand why this is the order )
launch2: ONE
launch1: ONE
launch1: TWO
launch2: TWO
The text was updated successfully, but these errors were encountered: