MCPcopy Create free account
hub / github.com/ReactiveX/RxJavaComputationExpressions / doWhile

Method doWhile

src/main/java/rx/Statement.java:121–123  ·  view source on GitHub ↗

Return an Observable that replays the emissions from the source Observable, and then continues to replay them so long as a condtion is true. @param postCondition the post condi

(Observable<? extends T> source, Func0<Boolean> postCondition)

Source from the content-addressed store, hash-verified

119 * condition is true
120 */
121 public static <T> Observable<T> doWhile(Observable<? extends T> source, Func0<Boolean> postCondition) {
122 return Observable.create(new OperatorWhileDoWhile<T>(source, TRUE, postCondition));
123 }
124
125 /**
126 * Return an Observable that replays the emissions from the source

Callers 5

testDoWhileMethod · 0.95
testDoWhileOnceMethod · 0.95
testDoWhileManyTimesMethod · 0.95

Calls

no outgoing calls

Tested by 5

testDoWhileMethod · 0.76
testDoWhileOnceMethod · 0.76
testDoWhileManyTimesMethod · 0.76