Skip to content
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

Flow collection silently hangs when dispatcher throws an exception #4142

Open
qwwdfsad opened this issue May 29, 2024 · 0 comments
Open

Flow collection silently hangs when dispatcher throws an exception #4142

qwwdfsad opened this issue May 29, 2024 · 0 comments

Comments

@qwwdfsad
Copy link
Member

Steps to reproduce:

 flowOf(1, 2, 3)
            .flowOn(Dispatchers.Main.immediate) // Should be not present in the classpath
            .collect {
                println("collect: $it")
            }

Original report: JetBrains/compose-multiplatform#4835

qwwdfsad added a commit that referenced this issue Nov 11, 2024
…t immediately

Otherwise, in the face of malfunctioning dispatcher, there might be no trace of any error, making it extremely hard to debug.

The root cause should be addressed by #4209

Fixes #4142
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant