Last active
February 3, 2017 13:31
-
-
Save feresr/3cd54710e9065da3c52e95fbdde7d8f4 to your computer and use it in GitHub Desktop.
rxRelayAwesome
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
public Constructor() { | |
observable = endpoints.getJoke().doOnNext(joke -> storage.save(joke)).publish(); | |
} | |
public void execute() { | |
observable.connect(); | |
} | |
public Subscription subscribe(Subscriber<Joke> subscriber) { } //subscribe | |
public final void unsubscribe(Subscription) { } //unsubscribe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment