Created
August 19, 2018 09:33
-
-
Save anitaa1990/a911f270e287f2e0c1d5342456f63fa7 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
Observable.interval(100, TimeUnit.MILLISECONDS) | |
.take(3) | |
.timestamp() | |
.subscribe(new Observer<Timed<Long>>() { | |
@Override | |
public void onSubscribe(Disposable d) { | |
} | |
@Override | |
public void onNext(Timed<Long> longTimed) { | |
System.out.println(longTimed); | |
} | |
@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