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
StateFlow implementation #1974
Merged
Merged
StateFlow implementation #1974
Commits on May 7, 2020
-
StateFlow is a Flow analogue to ConflatedBroadcastChannel. Since Flow API is simpler than channels APIs, the implementation of StateFlow is simpler. It consumes and allocates less memory, while still providing full deadlock-freedom (even though it is not lock-free internally). Fixes #1973 Fixes #395 Fixes #1816
Configuration menu - View commit details
-
Copy full SHA for 37c8702 - Browse repository at this point
Copy the full SHA 37c8702View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a777ac - Browse repository at this point
Copy the full SHA 4a777acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 117bd7e - Browse repository at this point
Copy the full SHA 117bd7eView commit details -
~ Add non-suspend stateIn operator with the initial value
* Move StateInTest * Add `out T` projection to StateFlow type
Configuration menu - View commit details
-
Copy full SHA for 8427154 - Browse repository at this point
Copy the full SHA 8427154View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5997d10 - Browse repository at this point
Copy the full SHA 5997d10View commit details -
Update kotlinx-coroutines-core/common/src/flow/StateFlow.kt
Co-authored-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d8a0a07 - Browse repository at this point
Copy the full SHA d8a0a07View commit details -
Configuration menu - View commit details
-
Copy full SHA for c615f02 - Browse repository at this point
Copy the full SHA c615f02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8320e7d - Browse repository at this point
Copy the full SHA 8320e7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bdfbbc - Browse repository at this point
Copy the full SHA 9bdfbbcView commit details -
Configuration menu - View commit details
-
Copy full SHA for bc7e79a - Browse repository at this point
Copy the full SHA bc7e79aView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.