Created
February 9, 2016 12:38
-
-
Save omegasoft7/691b87b585022d57a092 to your computer and use it in GitHub Desktop.
createObservable RxJava
This file contains hidden or 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
public static Observable<String> createObservable(){ | |
return Observable.create((Subscriber<? super String> subscriber) -> { | |
subscriber.onNext(Thread.currentThread().getName()); | |
subscriber.onCompleted(); | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment