English
Topic 13. Coroutines: suspend functions, structured concurrency, dispatchers, and asynchronous Flow streams
Goal: learn to launch and cancel coroutines, choose a dispatcher, handle independent failures, and build data streams.
Lecture contents
- Coroutines and suspend functions — Why a program needs coroutines · Suspend functions and builders
- Structured concurrency — Structured concurrency · Cooperative cancellation · Errors and supervision
- Dispatchers and shared state — Context and dispatchers · Shared mutable state
- Asynchronous Flow streams — A cold Flow · StateFlow and SharedFlow
- Debugging and tests — Debugging and tests