Skip to content

Instantly share code, notes, and snippets.

@tomlokhorst
Last active August 29, 2015 14:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomlokhorst/c8bf8464f4ee4cb5597f to your computer and use it in GitHub Desktop.
Save tomlokhorst/c8bf8464f4ee4cb5597f to your computer and use it in GitHub Desktop.
Example of wrapping a RxJava Observable to get promise semantics.
// This is now available as a full library instead of a gist: https://github.com/Q42/RxPromise
@tomlokhorst
Copy link
Author

Update: This is now available as a full library instead of a gist: https://github.com/Q42/RxPromise

Note: This is not meant as a piece of reusable code.
We wrote this at Q42 for a specific project, this is taken straight out of our codebase. For illustration purposes only.

Background information: ReactiveX/RxJava#2641 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment