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

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

主站蜘蛛池模板: 刚察县| 饶河县| 东辽县| 绥棱县| 淮北市| 秦皇岛市| 大名县| 栖霞市| 上杭县| 双江| 平远县| 如皋市| 城市| 东莞市| 额尔古纳市| 临安市| 锦屏县| 大理市| 灵宝市| 同心县| 瑞昌市| 壤塘县| 油尖旺区| 合川市| 唐海县| 长丰县| 惠州市| 盐津县| 临漳县| 准格尔旗| 日土县| 乐都县| 西畴县| 衡阳县| 昌邑市| 扶余县| 抚远县| 万全县| 安阳市| 平舆县| 沁水县|