Skip to content

Instantly share code, notes, and snippets.

@feresr
Last active February 3, 2017 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feresr/3cd54710e9065da3c52e95fbdde7d8f4 to your computer and use it in GitHub Desktop.
Save feresr/3cd54710e9065da3c52e95fbdde7d8f4 to your computer and use it in GitHub Desktop.
rxRelayAwesome
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