Created
August 19, 2018 05:46
-
-
Save anitaa1990/8c3178561a503250a1ef4def52feaac8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testSkipObservable() throws InterruptedException { | |
Observable.just("A", "B", "C", "D", "E", "F", "G", "H", "I", "J") | |
.skip(4) | |
.subscribe(new Observer<String>() { | |
@Override | |
public void onSubscribe(Disposable d) { | |
} | |
@Override | |
public void onNext(String s) { | |
System.out.println("onNext: " + s); | |
} | |
@Override | |
public void onError(Throwable e) { | |
} | |
@Override | |
public void onComplete() { | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment