rx-java Subjects

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


  • Subject<T, R> subject = AsyncSubject.create(); // Default AsyncSubject
  • Subject<T, R> subject = BehaviorSubject.create(); // Default BehaviorSubject
  • Subject<T, R> subject = PublishSubject.create(); // Default PublishSubject
  • Subject<T, R> subject = ReplaySubject.create(); // Default ReplaySubject
  • mySafeSubject = new SerializedSubject(unSafeSubject); // Convert an unsafeSubject to a safeSubject - generally for multi threaded Subjects


TInput type
ROutput type


This documentation provides details and explanations about Subject. For more information and further reading, please visit the official documentation.

Got any rx-java Question?