12 2019 档案
摘要:在Android中, 我们用到的数据有可能是一次性的, 也有可能是需要多个值的.
本文介绍Android中结合协程(coroutines)的MVVM模式如何处理这两种情况. 重点介绍协程`Flow`在Android中的应用.
阅读全文
摘要:Kotlin coroutines在Android中的应用.
协程在Android中主要用来解决什么问题; 和Architecture Components, MVVM构架如何完美结合.
阅读全文
摘要:协程中的Channel用于协程间的通信, 它的宗旨是:
```
Do not communicate by sharing memory; instead, share memory by communicating.
```
阅读全文