File tree 4 files changed +6
-6
lines changed
src/main/java/io/reactivex
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public Flowable<T> autoConnect(int numberOfSubscribers) {
111
111
* @param numberOfSubscribers the number of subscribers to await before calling connect
112
112
* on the ConnectableObservable. A non-positive value indicates
113
113
* an immediate connection.
114
- * @param connection the callback Action1 that will receive the Subscription representing the
114
+ * @param connection the callback Consumer that will receive the Subscription representing the
115
115
* established connection
116
116
* @return an Observable that automatically connects to this ConnectableObservable
117
117
* when the specified number of Subscribers subscribe to it and calls the
Original file line number Diff line number Diff line change @@ -138,10 +138,10 @@ public void subscribeActual(final Subscriber<? super T> subscriber) {
138
138
source .connect (onSubscribe (subscriber , writeLocked ));
139
139
} finally {
140
140
// need to cover the case where the source is subscribed to
141
- // outside of this class thus preventing the Action1 passed
141
+ // outside of this class thus preventing the Consumer passed
142
142
// to source.connect above being called
143
143
if (writeLocked .get ()) {
144
- // Action1 passed to source.connect was not called
144
+ // Consumer passed to source.connect was not called
145
145
lock .unlock ();
146
146
}
147
147
}
Original file line number Diff line number Diff line change @@ -68,10 +68,10 @@ public void subscribeActual(final Observer<? super T> subscriber) {
68
68
source .connect (onSubscribe (subscriber , writeLocked ));
69
69
} finally {
70
70
// need to cover the case where the source is subscribed to
71
- // outside of this class thus preventing the Action1 passed
71
+ // outside of this class thus preventing the Consumer passed
72
72
// to source.connect above being called
73
73
if (writeLocked .get ()) {
74
- // Action1 passed to source.connect was not called
74
+ // Consumer passed to source.connect was not called
75
75
lock .unlock ();
76
76
}
77
77
}
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public Observable<T> autoConnect(int numberOfSubscribers) {
111
111
* @param numberOfSubscribers the number of subscribers to await before calling connect
112
112
* on the ConnectableObservable. A non-positive value indicates
113
113
* an immediate connection.
114
- * @param connection the callback Action1 that will receive the Subscription representing the
114
+ * @param connection the callback Consumer that will receive the Subscription representing the
115
115
* established connection
116
116
* @return an Observable that automatically connects to this ConnectableObservable
117
117
* when the specified number of Subscribers subscribe to it and calls the
You can’t perform that action at this time.
0 commit comments