Created
June 8, 2016 05:28
-
-
Save mindwing/5198d495d817f3dc90cf34700a789eda to your computer and use it in GitHub Desktop.
Agera Explained - 08.Incrementally Agerifying legacy code
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
interface AsyncOperator<P, R> { | |
Cancellable request(P param, Callback<R> callback); | |
} | |
interface Callback<R> { | |
void onResponse(R response); // Can be called from any thread | |
} | |
interface Cancellable { | |
void cancel(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment