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

Feature: Switch to a SharedFlow for network status #9

Merged
merged 4 commits into from
Jun 10, 2024
Merged

Conversation

jordond
Copy link
Owner

@jordond jordond commented Jun 10, 2024

Currently the network Flow is backed by a StateFlow which requires a default value. This default value is set to Disconnected. This was a design flaw since it doesn't reflect the actual state of the network.

Instead a new property statusUpdates has been added that is backed by a SharedFlow. This means there will only be updates once the state is actually known.

Connectivity.updates has been deprecated and will be replaced with statusUpdates in the future, since the Connectivity.Update is flawed.

@jordond jordond added this to the 1.1.0 milestone Jun 10, 2024
@jordond jordond merged commit 34b2507 into main Jun 10, 2024
5 checks passed
@jordond jordond deleted the feat/shared_flow branch June 10, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant