File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
src/main/java/rx/internal/operators Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 18
18
import java .util .Arrays ;
19
19
20
20
import rx .Observable .Operator ;
21
+ import rx .Producer ;
21
22
import rx .Subscriber ;
22
23
import rx .exceptions .CompositeException ;
23
24
import rx .exceptions .Exceptions ;
@@ -92,6 +93,16 @@ public void onCompleted() {
92
93
child .onCompleted ();
93
94
}
94
95
96
+ @ Override
97
+ public void setProducer (final Producer producer ) {
98
+ child .setProducer (new Producer () {
99
+ @ Override
100
+ public void request (long n ) {
101
+ producer .request (n );
102
+ }
103
+ });
104
+ }
105
+
95
106
};
96
107
child .add (parent );
97
108
return parent ;
Original file line number Diff line number Diff line change 16
16
package rx .internal .operators ;
17
17
18
18
import rx .Observable ;
19
+ import rx .Producer ;
19
20
import rx .Observable .Operator ;
20
21
import rx .Subscriber ;
21
22
import rx .exceptions .Exceptions ;
@@ -92,6 +93,16 @@ public void onCompleted() {
92
93
child .onCompleted ();
93
94
}
94
95
96
+ @ Override
97
+ public void setProducer (final Producer producer ) {
98
+ child .setProducer (new Producer () {
99
+ @ Override
100
+ public void request (long n ) {
101
+ producer .request (n );
102
+ }
103
+ });
104
+ }
105
+
95
106
};
96
107
child .add (s );
97
108
You can’t perform that action at this time.
0 commit comments