Last active
August 29, 2015 14:16
-
-
Save tomlokhorst/c8bf8464f4ee4cb5597f to your computer and use it in GitHub Desktop.
Example of wrapping a RxJava Observable to get promise semantics.
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
// This is now available as a full library instead of a gist: https://github.com/Q42/RxPromise |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)