rx-javaSubjects


Syntax

  • 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

Parameters

ParametersDetails
TInput type
ROutput type

Remarks

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