Skip to content

Commit 3921da7

Browse files
Observable.from with scheduler
Fixed blocking test in ObservableWindowTest
1 parent d7997fb commit 3921da7

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

rxjava-core/src/main/java/rx/Observable.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,11 +1034,6 @@ public static <T> Observable<T> from(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T
10341034
* <p>
10351035
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/from.png">
10361036
* <p>
1037-
* Note: the items will be immediately emitted each time an {@link Observer}
1038-
* subscribes. Since this occurs before the {@link Subscription} is
1039-
* returned, it is not possible to unsubscribe from the sequence before it
1040-
* completes.
1041-
*
10421037
* @param t1 first item
10431038
* @param t2 second item
10441039
* @param t3 third item
@@ -1066,11 +1061,6 @@ public static <T> Observable<T> from(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T
10661061
* <p>
10671062
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/range.png">
10681063
* <p>
1069-
* Note: the entire range is immediately emitted each time an
1070-
* {@link Observer} subscribes. Since this occurs before the
1071-
* {@link Subscription} is returned, it is not possible to unsubscribe from
1072-
* the sequence before it completes.
1073-
*
10741064
* @param start the value of the first Integer in the sequence
10751065
* @param count the number of sequential Integers to generate
10761066
* @return an Observable that emits a range of sequential Integers

rxjava-core/src/test/java/rx/ObservableWindowTests.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,6 @@ public class ObservableWindowTests {
3030
@Test
3131
public void testWindow() {
3232
final ArrayList<List<Integer>> lists = new ArrayList<List<Integer>>();
33-
/*
34-
Observable.from(1, 2, 3, 4, 5, 6)
35-
.window(3).map(new Func1<Observable<Integer>, List<Integer>>() {
36-
37-
@Override
38-
public List<Integer> call(Observable<Integer> o) {
39-
return o.toList().toBlockingObservable().single();
40-
}
41-
42-
}).toBlockingObservable().forEach(new Action1<List<Integer>>() {
43-
44-
@Override
45-
public void call(List<Integer> t) {
46-
lists.add(t);
47-
}
48-
});
49-
*/
5033

5134
Observable.concat(Observable.from(1, 2, 3, 4, 5, 6).window(3).map(new Func1<Observable<Integer>, Observable<List<Integer>>>() {
5235
@Override

0 commit comments

Comments
 (0)