count

abstract fun count(scope: CoroutineScope): Deferred<Int>

返回 Flow 中的元素数量。

Return

一个 Deferred,它将持有元素的总数。

Parameters

scope

执行操作所在的协程作用域。