Created
June 25, 2019 20:54
-
-
Save carlosgub/900b0ba4a1821c183e130022a467af69 to your computer and use it in GitHub Desktop.
RXjava From
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.fromArray(new String[]{"A", "B", "C", "D", "E", "F"}) | |
.subscribe(new Observer<String>() { | |
@Override | |
public void onSubscribe(Disposable d) { | |
} | |
@Override | |
public void onNext(String string) { | |
System.out.println("onNext: " + string); | |
} | |
@Override | |
public void onError(Throwable e) { | |
System.out.println("onError: " + e.getMessage()); | |
} | |
@Override | |
public void onComplete() { | |
} | |
}); | |
view rawFromObservable.java hosted with ❤ by GitHub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment