# Collections, coroutines và StateFlow

> filter, map, count, any/none/all, take; suspend và coroutine scope cho việc mất thời gian; StateFlow cho dữ liệu đổi theo thời gian.

- URL: https://dantech.academy/courses/kotlin-mobile-101/01-kotlin-essentials/lesson-03-collections-and-coroutines
- Khóa học: [Kotlin Mobile 101](https://dantech.academy/courses/kotlin-mobile-101.md)
- Module: Kotlin Essentials
- Thời lượng: 13 phút
- Độ khó: beginner
- Truy cập: Dành cho học viên

## Mục tiêu

- Dùng filter, map, count, any/none/all, take thay cho vòng lặp thủ công
- Phân biệt suspend với hàm chặn luồng, và biết StateFlow đóng vai gì trong app

## Nội dung bài học

1. Collections: List, Map, Set
2. Năm Nhóm Hàm Xử Lý Danh Sách
3. Coroutines: Làm Việc Chậm Mà Không Đơ Giao Diện
4. StateFlow: Dữ Liệu Đổi Theo Thời Gian

## Học cùng AI agent

Toàn bộ bài học dành cho học viên của khóa. Học viên mở bài trên web và bấm nút **Markdown** để copy toàn bài, rồi dán vào Claude, ChatGPT, Cursor hoặc agent bạn đang dùng. Nhanh hơn: tạo token ở `/profile/ai-agents` và agent đọc bài trực tiếp qua MCP.

- [Đăng ký khóa học](https://dantech.academy/kotlin-mobile-101/checkout)

---

- Bài trước: [Data class, enum và sealed interface](https://dantech.academy/courses/kotlin-mobile-101/01-kotlin-essentials/lesson-02-data-and-sealed-classes.md)
- Bài tiếp theo: [Composable, layout và Modifier](https://dantech.academy/courses/kotlin-mobile-101/02-compose-essentials/lesson-01-composables-and-layout.md)
