Creates and returns a new SerializedSubject.
Creates and returns a new SerializedSubject.
actual Subject to wrap and synchronously notify
a SerializedSubject that is a chronologically well-behaved version of the actual Subject, and that synchronously notifies the wrapped Subject
RxScalaDemo.eventBusExample for example usage
Wraps a Subject to ensure that the resulting Subject is chronologically well-behaved.
A well-behaved Subject does not interleave its invocations of the onNext, onCompleted, and onError methods of its rx.lang.scala.Subjects; it invokes
onCompleted
oronError
only once; and it never invokesonNext
after invoking eitheronCompleted
oronError
.SerializedSubject enforces this, and the Subject it returns invokes
onNext
andonCompleted
oronError
synchronously on the wrapped Subject.