Skip to content

Commit 0b0355e

Browse files
committed
2.x: Replace Action1 with Consumer in docs
1 parent c799bc0 commit 0b0355e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/main/java/io/reactivex/flowables/ConnectableFlowable.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public Flowable<T> autoConnect(int numberOfSubscribers) {
111111
* @param numberOfSubscribers the number of subscribers to await before calling connect
112112
* on the ConnectableObservable. A non-positive value indicates
113113
* 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
115115
* established connection
116116
* @return an Observable that automatically connects to this ConnectableObservable
117117
* when the specified number of Subscribers subscribe to it and calls the

src/main/java/io/reactivex/internal/operators/flowable/FlowableRefCount.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ public void subscribeActual(final Subscriber<? super T> subscriber) {
138138
source.connect(onSubscribe(subscriber, writeLocked));
139139
} finally {
140140
// 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
142142
// to source.connect above being called
143143
if (writeLocked.get()) {
144-
// Action1 passed to source.connect was not called
144+
// Consumer passed to source.connect was not called
145145
lock.unlock();
146146
}
147147
}

src/main/java/io/reactivex/internal/operators/observable/ObservableRefCount.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ public void subscribeActual(final Observer<? super T> subscriber) {
6868
source.connect(onSubscribe(subscriber, writeLocked));
6969
} finally {
7070
// 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
7272
// to source.connect above being called
7373
if (writeLocked.get()) {
74-
// Action1 passed to source.connect was not called
74+
// Consumer passed to source.connect was not called
7575
lock.unlock();
7676
}
7777
}

src/main/java/io/reactivex/observables/ConnectableObservable.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public Observable<T> autoConnect(int numberOfSubscribers) {
111111
* @param numberOfSubscribers the number of subscribers to await before calling connect
112112
* on the ConnectableObservable. A non-positive value indicates
113113
* 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
115115
* established connection
116116
* @return an Observable that automatically connects to this ConnectableObservable
117117
* when the specified number of Subscribers subscribe to it and calls the

0 commit comments

Comments
 (0)