package subjects
- Alphabetic
 
- Public
 - All
 
Type Members
- 
      
      
      
        
      
    
      
        final 
        class
      
      
        
              AsyncSubject
            [T] extends Subject[T, T]
      
      
      
An
AsyncSubjectemits the last value (and only the last value) emitted by the source and only after the source completes.An
AsyncSubjectemits the last value (and only the last value) emitted by the source and only after the source completes.If the source terminates with an error, the
AsyncSubjectwill not emit any items to subsequent subscribers, but will simply pass along the error notification from the source Observable. - 
      
      
      
        
      
    
      
        final 
        class
      
      
        
              BehaviorSubject
            [T] extends Subject[T, T]
      
      
      
BehaviorSubjectwhen subscribed, will emit the most recently emitted item by the source, or theinitialValue(as the seed) in case no value has yet been emitted, then continuing to emit events subsequent to the time of invocation.BehaviorSubjectwhen subscribed, will emit the most recently emitted item by the source, or theinitialValue(as the seed) in case no value has yet been emitted, then continuing to emit events subsequent to the time of invocation.When the source terminates in error, the
BehaviorSubjectwill not emit any items to subsequent subscribers, but instead it will pass along the error notification.- See also
 
 - 
      
      
      
        
      
    
      
        abstract 
        class
      
      
        
              ConcurrentSubject
            [I, +O] extends Subject[I, O] with Sync[I]
      
      
      
A concurrent subject is meant for imperative style feeding of events.
A concurrent subject is meant for imperative style feeding of events.
When emitting events, one doesn't need to follow the back-pressure contract. On the other hand the grammar must still be respected:
(onNext)* (onComplete | onError)
 - 
      
      
      
        
      
    
      
        final 
        class
      
      
        
              PublishSubject
            [T] extends Subject[T, T]
      
      
      
A
PublishSubjectemits to a subscriber only those items that are emitted by the source subsequent to the time of the subscription.A
PublishSubjectemits to a subscriber only those items that are emitted by the source subsequent to the time of the subscription.If the source terminates with an error, the
PublishSubjectwill not emit any items to subsequent subscribers, but will simply pass along the error notification from the source Observable.- See also
 
 - 
      
      
      
        
      
    
      
        final 
        class
      
      
        
              PublishToOneSubject
            [A] extends Subject[A, A] with BooleanCancelable
      
      
      
PublishToOneSubjectis a monix.reactive.subjects.PublishSubject that can be subscribed at most once.PublishToOneSubjectis a monix.reactive.subjects.PublishSubject that can be subscribed at most once.In case the subject gets subscribed more than once, then the subscribers will be notified with a MultipleSubscribersException error.
Given that unicast observables are tricky, for working with this subject one can also be notified when the subscription finally happens.
 - 
      
      
      
        
      
    
      
        final 
        class
      
      
        
              ReplaySubject
            [T] extends Subject[T, T]
      
      
      
ReplaySubjectemits to any observer all of the items that were emitted by the source, regardless of when the observer subscribes. - 
      
      
      
        
      
    
      
        abstract 
        class
      
      
        
              Subject
            [I, +O] extends Observable[O] with Observer[I]
      
      
      
A
Subjectis a sort of bridge or proxy that acts both as an Observer and as an Observable and that must respect the contract of both.A
Subjectis a sort of bridge or proxy that acts both as an Observer and as an Observable and that must respect the contract of both.Because it is a
Observer, it can subscribe to anObservableand because it is anObservable, it can pass through the items it observes by re-emitting them and it can also emit new items.Useful to build multicast Observables or reusable processing pipelines.
 
Value Members
-  object AsyncSubject extends Serializable
 -  object BehaviorSubject extends Serializable
 -  object ConcurrentSubject extends Serializable
 -  object PublishSubject extends Serializable
 -  object PublishToOneSubject extends Serializable
 -  object ReplaySubject extends Serializable
 -  object Subject extends Serializable
 

This is the API documentation for the Monix library.
Package Overview
monix.execution exposes lower level primitives for dealing with asynchronous execution:
Atomictypes, as alternative tojava.util.concurrent.atomicmonix.eval is for dealing with evaluation of results, thus exposing Task and Coeval.
monix.reactive exposes the
Observablepattern:Observableimplementationsmonix.types implements type-class shims, to be translated to type-classes provided by libraries such as Cats or Scalaz.
monix.cats is the optional integration with the Cats library, providing translations for the types described in
monix.types.monix.scalaz is the optional integration with the Scalaz library, providing translations for the types described in
monix.types.