TBD
TBD
In RxGroovy, this operator is not in the ReactiveX core, but is part of the distinct
rxjava-math
module, where it is implemented with four type-specific operators:
sumDouble
, sumFloat
, sumInteger
, and
sumLong
. The following example shows how these operators work:
def myObservable = Observable.create({ aSubscriber -> if(false == aSubscriber.isUnsubscribed()) aSubscriber.onNext(4); if(false == aSubscriber.isUnsubscribed()) aSubscriber.onNext(3); if(false == aSubscriber.isUnsubscribed()) aSubscriber.onNext(2); if(false == aSubscriber.isUnsubscribed()) aSubscriber.onNext(1); if(false == aSubscriber.isUnsubscribed()) aSubscriber.onCompleted(); }); Observable.sumInteger(myObservable).subscribe( { println(it); }, // onNext { println("Error encountered"); }, // onError { println("Sequence complete"); } // onCompleted );
10 Sequence complete
sumDouble sumFloat sumInteger sumLong StringObservable.join StringObservable.stringConcat
This operator is not in the RxJava core, but is part of the distinct rxjava-math
module, where it is implemented with four type-specific operators: sumDouble
,
sumFloat
, sumInteger
, and sumLong
.
sum
is found in the following distributions:
rx.all.js
rx.all.compat.js
rx.aggregates.js
It requires one of the following:
rx.js
rx.compat.js
rx.lite.js
rx.lite.compat.js
TBD
TBD
TBD