@Override protected void match() throws Exception { if (!first.queue().isEmpty() && !second.queue().isEmpty() && !third.queue().isEmpty()) { Notification<T1> n1 = first.queue().peek(); Notification<T2> n2 = second.queue().peek(); Notification<T3> n3 = third.queue().peek(); if (n1.isOnComplete() || n2.isOnComplete() || n3.isOnComplete()) { onCompleted.run(); } else { dequeue(); onNext.accept(n1.getValue(), n2.getValue(), n3.getValue()); } } }
@Override protected void match() throws Exception { if (!first.queue().isEmpty() && !second.queue().isEmpty() && !third.queue().isEmpty()) { Notification<T1> n1 = first.queue().peek(); Notification<T2> n2 = second.queue().peek(); Notification<T3> n3 = third.queue().peek(); if (n1.isOnComplete() || n2.isOnComplete() || n3.isOnComplete()) { onCompleted.run(); } else { dequeue(); onNext.accept(n1.getValue(), n2.getValue(), n3.getValue()); } } }