File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -3870,6 +3870,16 @@ trait Observable[+T]
3870
3870
}
3871
3871
}
3872
3872
3873
+ /**
3874
+ * Returns an Observable that counts the total number of items emitted by the source Observable and emits this count as a 64-bit Long.
3875
+ *
3876
+ * <img width="640" height="310" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/longCount.png">
3877
+ *
3878
+ * @return an Observable that emits a single item: the number of items emitted by the source Observable as a 64-bit Long item
3879
+ */
3880
+ def longCount : Observable [Long ] = {
3881
+ toScalaObservable[java.lang.Long ](asJavaObservable.longCount()).map(_.longValue())
3882
+ }
3873
3883
}
3874
3884
3875
3885
/**
You can’t perform that action at this time.
0 commit comments