T - The type of the observable sequence.public final class OperatorSynchronize<T> extends java.lang.Object implements Observable.Operator<T,T>
A well-behaved Observable does not interleave its invocations of the onNext,
onCompleted, and onError methods of its Observers; it invokes
onCompleted or onError only once; and it never invokes
onNext after invoking either onCompleted or onError. The
synchronize operation enforces this, and the Observable it returns invokes onNext
and onCompleted or onError synchronously.
NOTE: Observable.create(rx.Observable.OnSubscribe<T>) already wraps Observables so this is generally redundant.
| Constructor and Description |
|---|
OperatorSynchronize() |
OperatorSynchronize(java.lang.Object lock) |
| Modifier and Type | Method and Description |
|---|---|
Subscriber<? super T> |
call(Subscriber<? super T> s) |
public OperatorSynchronize(java.lang.Object lock)
public OperatorSynchronize()
public Subscriber<? super T> call(Subscriber<? super T> s)
call in interface Func1<Subscriber<? super T>,Subscriber<? super T>>