官术网_书友最值得收藏!

Count operator

The count operator is pretty descriptive; it emits the only value with the number of elements in the input stream. However, the count emits at the moment when the original stream completes, so, in the case of an endless stream, the count will not ever finish or return anything, as shown in the following diagram:

Diagram 2.9 Count o perator: counts the number of items emitted by the Observable source   and emit only this value

主站蜘蛛池模板: 察雅县| 乐都县| 磐安县| 老河口市| 扎赉特旗| 乐至县| 浠水县| 达日县| 神农架林区| 东乡县| 呼图壁县| 灵山县| 尼勒克县| 北安市| 宁波市| 磴口县| 池州市| 丰台区| 汝州市| 辉县市| 荆州市| 闵行区| 普陀区| 拜城县| 临邑县| 山丹县| 疏勒县| 南部县| 昆明市| 甘南县| 察雅县| 邯郸县| 甘孜| 永仁县| 广昌县| 和硕县| 甘谷县| 揭西县| 金华市| 洛宁县| 塘沽区|