You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can the subscriber.onNext(item) be invoked before the subscriber.onSubscribe(subscription) returns, e.g. the subscriber invokes subscription.request(n) within the onSubscribe(subscription) method?
voidonSubscribe(Subscriptionsubscription) {
subscription.request(1);
// the publisher may start (asynchronously) publishing items to the subscriber// which means the onNext(item) may be invoked before this method returnslog.debug("end-of-on-subscribe");
}
voidonNext(Titem) {
log.debug("next");
}
(If logging is synchronized,)
Can next be logged before the end-of-on-subscribe?