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

Tracking issue for stabilization of UnconfinedTestDispatcher #3749

Open
JakeWharton opened this issue May 11, 2023 · 0 comments
Open

Tracking issue for stabilization of UnconfinedTestDispatcher #3749

JakeWharton opened this issue May 11, 2023 · 0 comments
Assignees

Comments

@JakeWharton
Copy link
Contributor

UnconfinedTestDispatcher didn't get the stable treatment in #3622. This is a tracking issue for its stabilization at some point in the future.

For us, this is the final remaining unstable API preventing Turbine from going 1.0. Turbine collects flows in a coroutine which was traditionally launched on the UNCONFINED dispatcher. This is to ensure we do not miss any emitted values from a flow when it performs some operation on backpressure (conflating, dropping, etc.). With the new runTest infrastructure, we were forced to take on a 'kotlinx-coroutines-test' dependency in order to conditionally use UnconfinedTestDispatcher wrapped around the caller's TestCoroutineScheduler so as to not break virtual time.

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

3 participants