-
Notifications
You must be signed in to change notification settings - Fork 1.9k
collectLatest issue. it's working as expected only after a delay statement. #3188
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
why the first five events are skipped? |
Because that's how If you don't want this behavior, use |
I think it's already quite clear in the |
the first five emits are not getting suspended even if there is a The example given in kotlin docs is pretty easy to understand as it has delay method inside the but I didn't get why SIX, SEVEN, EIGHT, NINE, TEN events are getting collected missing the first five events. I understand that using collect I'm able to get without any issues, but I just thought this should also work the same way. you can close this if it's not an issue @LouisCAD. And thanks for your patience and response (every time you are replying as soon as you see the comment). |
Hi @qwwdfsad i am facing the exact same problem but couldnt know if kotlin team has worked on it, or which version is being affected. Do you mind give some advice? |
Hey, could you please elaborate on the exact problem you are having? |
Hai @qwwdfsad, firstly kotlin is a great language, I use it every day for my android development. |
output:
launch1: SIX
launch1: SEVEN
launch1: EIGHT
launch1: NINE
launch1: TEN
The text was updated successfully, but these errors were encountered: