Created
March 28, 2019 17:19
-
-
Save mitchtabian/53254713a49bc966d3debf2a762c7dc2 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
Flowable.range(0, 1000000) | |
.onBackpressureBuffer() | |
.observeOn(Schedulers.computation()) | |
.subscribe(new FlowableSubscriber<Integer>() { | |
@Override | |
public void onSubscribe(Subscription s) { | |
} | |
@Override | |
public void onNext(Integer integer) { | |
Log.d(TAG, "onNext: " + integer); | |
} | |
@Override | |
public void onError(Throwable t) { | |
Log.e(TAG, "onError: ", t); | |
} | |
@Override | |
public void onComplete() { | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment