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
onCompletedoronErroronly once; and it never invokesonNextafter invoking eitheronCompletedoronError.SerializedSubject enforces this, and the Subject it returns invokes
onNextandonCompletedoronErrorsynchronously on the wrapped Subject.