Skip to content

Window operators now support backpressure in the inner observable. #3150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void replaceSubject() {
child.onNext(producer);
}
void createNewWindow() {
BufferUntilSubscriber<T> bus = BufferUntilSubscriber.create();
UnicastSubject<T> bus = UnicastSubject.create();
consumer = bus;
producer = bus;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void replaceSubject() {
child.onNext(producer);
}
void createNewWindow() {
BufferUntilSubscriber<T> bus = BufferUntilSubscriber.create();
UnicastSubject<T> bus = UnicastSubject.create();
consumer = bus;
producer = bus;
Observable<? extends U> other;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public Subscriber<? super T> call(Subscriber<? super Observable<T>> child) {
final class ExactSubscriber extends Subscriber<T> {
final Subscriber<? super Observable<T>> child;
int count;
BufferUntilSubscriber<T> window;
UnicastSubject<T> window;
volatile boolean noWindow = true;
public ExactSubscriber(Subscriber<? super Observable<T>> child) {
/**
Expand Down Expand Up @@ -107,7 +107,7 @@ void requestMore(long n) {
public void onNext(T t) {
if (window == null) {
noWindow = false;
window = BufferUntilSubscriber.create();
window = UnicastSubject.create();
child.onNext(window);
}
window.onNext(t);
Expand Down Expand Up @@ -242,7 +242,7 @@ public void onCompleted() {
}

CountedSubject<T> createCountedSubject() {
final BufferUntilSubscriber<T> bus = BufferUntilSubscriber.create();
final UnicastSubject<T> bus = UnicastSubject.create();
return new CountedSubject<T>(bus, bus);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void endWindow(SerializedSubject<T> window) {
}
}
SerializedSubject<T> createSerializedSubject() {
BufferUntilSubscriber<T> bus = BufferUntilSubscriber.create();
UnicastSubject<T> bus = UnicastSubject.create();
return new SerializedSubject<T>(bus, bus);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ boolean replaceSubject() {
unsubscribe();
return false;
}
BufferUntilSubscriber<T> bus = BufferUntilSubscriber.create();
UnicastSubject<T> bus = UnicastSubject.create();
state = state.create(bus, bus);
child.onNext(bus);
return true;
Expand Down Expand Up @@ -492,7 +492,7 @@ void terminateChunk(CountedSerializedSubject<T> chunk) {
}
}
CountedSerializedSubject<T> createCountedSerializedSubject() {
BufferUntilSubscriber<T> bus = BufferUntilSubscriber.create();
UnicastSubject<T> bus = UnicastSubject.create();
return new CountedSerializedSubject<T>(bus, bus);
}
}
Expand Down
Loading