Flow是什么
Flow用于表达多个连续的异步过程。
实现方式为使用协程封装成生产者消费者模式,上游流负责生产,下游流负责消耗。
Flow创建
创建
fun simpleFlow() = flow {
for (i in 1..3) {
delay(100)
emit(i)
}
}
消费
fun createFlowTest() {
runBloc
A genomewide transcriptomic approach identifies a novel gene expression signature for the detection of lymph node metastasis in patients with early stage gastric cancer
全基因组转录组学方法确定了检测早期胃癌患者淋巴结转移的新基因