Skip to content
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

2.x: Add a sentence to documentation of take() operator. #5718

Merged
merged 2 commits into from
Nov 11, 2017
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
6 changes: 6 additions & 0 deletions src/main/java/io/reactivex/Flowable.java
Original file line number Diff line number Diff line change
Expand Up @@ -13392,6 +13392,9 @@ public final Flowable<T> take(long count) {
* Returns a Flowable that emits those items emitted by source Publisher before a specified time runs
* out.
* <p>
* If time runs out before the {@code Flowable} completes normally, the {@code onComplete} event will be
* signaled on the default {@code computation} {@link Scheduler}.
* <p>
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/take.t.png" alt="">
* <dl>
* <dt><b>Backpressure:</b></dt>
Expand Down Expand Up @@ -13419,6 +13422,9 @@ public final Flowable<T> take(long time, TimeUnit unit) {
* Returns a Flowable that emits those items emitted by source Publisher before a specified time (on a
* specified Scheduler) runs out.
* <p>
* If time runs out before the {@code Flowable} completes normally, the {@code onComplete} event will be
* signaled on the provided {@link Scheduler}.
* <p>
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/take.ts.png" alt="">
* <dl>
* <dt><b>Backpressure:</b></dt>
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/io/reactivex/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -11286,6 +11286,9 @@ public final Observable<T> take(long count) {
* Returns an Observable that emits those items emitted by source ObservableSource before a specified time runs
* out.
* <p>
* If time runs out before the {@code Observable} completes normally, the {@code onComplete} event will be
* signaled on the default {@code computation} {@link Scheduler}.
* <p>
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/take.t.png" alt="">
* <dl>
* <dt><b>Scheduler:</b></dt>
Expand All @@ -11309,6 +11312,9 @@ public final Observable<T> take(long time, TimeUnit unit) {
* Returns an Observable that emits those items emitted by source ObservableSource before a specified time (on a
* specified Scheduler) runs out.
* <p>
* If time runs out before the {@code Observable} completes normally, the {@code onComplete} event will be
* signaled on the provided {@link Scheduler}.
* <p>
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/take.ts.png" alt="">
* <dl>
* <dt><b>Scheduler:</b></dt>
Expand Down