今天上架了我的Android系列課程第 8 堂
這次是給Android 初學者的 Coroutine 入門課
有興趣的朋友可以看看
第 1 章 Coroutine 的非同步處理
Coroutine簡介
建立 Coroutines
Coroutine 的取消
使用Job來管理Coroutine
Async 非同步處理
第 2 章 深入介紹 Coroutine
使用 Dispatchers 切換執行緒
Suspending functions
Coroutine Scope
Structured concurrency
第 3 章 使用 Flow 處理非同步工作
Flow 基本功能介紹
Flow operator
Flow back pressure
Flow 的執行緒切換
SharedFlow
StateFlow
第 4 章 使用 Channel 處理非同步工作
Channel 基本介紹
Channel 的Buffer設定
Pipelines
第 5 章 綜合範例與比較
Retrofit + Coroutines + Livedata
在Coroutine合併多個請求
Retrofit + Coroutines + Stateflow
Sharedflow、Livedata、Stateflow 的選擇