Clear the replaySubject buffer of rxjava

It seems like there should be a ReplaySubject.clear () method. I am currently assigning a new ReplaySubject.create () to my field whenever I want to clear the topic, but this seems like overkill. Does anyone know if there is a clear method that I am not seeing?

+3


source to share





All Articles