Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Lots of improvements around Coroutines usage #648

Merged
merged 2 commits into from
Jun 21, 2020
Merged

Conversation

chrisbanes
Copy link
Owner

@chrisbanes chrisbanes commented Jun 21, 2020

  • Updated to Coroutines 1.3.7
  • Replaced all usage of ConflatedBroadcastChannel with StateFlow
  • Started consuming pendingAction Channels in ViewModels via consumeAsFlow() to ensure the channels get closed.
  • Started checking for closed channels before offer()ing
  • Tidied up some of the internals of ReduxViewModel since we can now rely on StateFlow
  • Removed Store's explicit CoroutineScope

- Updated to Coroutines 1.3.7
- Replaced all usage of ConflatedBroadcastChannel with
  StateFlow
- Started consuming `action` Channels via consumeAsFlow()
  to ensure the channels get closed.
- Started checking for closed channels before `offer()`ing
- Tidied up some of the internals of ReduxViewModel since
  we can now rely on `StateFlow`
@chrisbanes
Copy link
Owner Author

/cc @manuelvicnt as he might be interested.

@chrisbanes chrisbanes merged commit 2198203 into main Jun 21, 2020
@chrisbanes chrisbanes deleted the cb/store-scope branch June 21, 2020 15:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants