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

StateFlow implementation #1974

Merged
merged 10 commits into from May 7, 2020
Merged

StateFlow implementation #1974

merged 10 commits into from May 7, 2020

Commits on May 7, 2020

  1. StateFlow implementation

    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
    elizarov committed May 7, 2020
    Configuration menu
    Copy the full SHA
    37c8702 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a777ac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    117bd7e View commit details
    Browse the repository at this point in the history
  4. ~ Add non-suspend stateIn operator with the initial value

    * Move StateInTest
    * Add `out T` projection to StateFlow type
    elizarov committed May 7, 2020
    Configuration menu
    Copy the full SHA
    8427154 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5997d10 View commit details
    Browse the repository at this point in the history
  6. Update kotlinx-coroutines-core/common/src/flow/StateFlow.kt

    Co-authored-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com>
    elizarov and qwwdfsad committed May 7, 2020
    Configuration menu
    Copy the full SHA
    d8a0a07 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c615f02 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8320e7d View commit details
    Browse the repository at this point in the history
  9. ~ Fix api dump

    elizarov committed May 7, 2020
    Configuration menu
    Copy the full SHA
    9bdfbbc View commit details
    Browse the repository at this point in the history
  10. ~ Fix copyright year

    elizarov committed May 7, 2020
    Configuration menu
    Copy the full SHA
    bc7e79a View commit details
    Browse the repository at this point in the history