These are chat archives for ReactiveX/RxJava

8th
Sep 2015
David Stemmer
@weefbellington
Sep 08 2015 19:34
This message was deleted
does anybody know what effect onNext will have on a PublishSubject after PublishSubject#onCompleted has been called?
will the onNext item be emitted, will it fail to be emitted silently, or will the call fail with an exception?
Dorus
@Dorus
Sep 08 2015 21:06
Try it? If the subject is implemented properly, it should silently ignore the onNext().
http://reactivex.io/RxJava/javadoc/rx/subjects/PublishSubject.html#onNext%28T%29
onNext [...] The Observable will not call this method again after it calls either Observer.onCompleted() or Observer.onError(java.lang.Throwable).