Skip to content

Instantly share code, notes, and snippets.

@mindwing
Created June 8, 2016 05:28
Show Gist options
  • Save mindwing/5198d495d817f3dc90cf34700a789eda to your computer and use it in GitHub Desktop.
Save mindwing/5198d495d817f3dc90cf34700a789eda to your computer and use it in GitHub Desktop.
Agera Explained - 08.Incrementally Agerifying legacy code
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