After this lesson you will
- Tell managers (stateful, single) apart from use cases (stateless, factory)
- Read how SubscriptionManagerImpl exposes StateFlow and uses the singleton scope
- Find and fix a check-then-set race with MutableStateFlow's getAndUpdate
Duration25 min
DifficultyIntermediate
Managers For Complex Orchestration
Managers For Complex Orchestration in the Mobile Action Pro course.
- 01Lesson Goal
- 02Part 1: What A Manager Is In This Repo
- 03Part 2: A Manager Wraps State In A StateFlow
- 04Part 3: A Manager Holds A Complex Rule
- 05Part 4: Feature-Specific Helpers
- 06Practice Exercise
- 07Code Reading Path
- 08Signs To Avoid
- 09References
- 10Key Points
Topics: kotlin, 06-clean-architecture
10 sections left in this lessonUnlock all of Mobile Action ProLesson Goal, Part 1: What A Manager Is In This Repo, … — plus 114 lessons in this course, source code and checklists.
Unlock Mobile Action ProOne-time payment — lifetime access — 7-day money-back. Already purchased? Sign in