Skip to content

Instantly share code, notes, and snippets.

@ipapaste
Created February 14, 2017 19:37
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 ipapaste/fbf90b5f1f7652b3136fe3d3af0d43fa to your computer and use it in GitHub Desktop.
Save ipapaste/fbf90b5f1f7652b3136fe3d3af0d43fa to your computer and use it in GitHub Desktop.
public Future<List<GenericDTO>> getCars(String city) {
final Tuple2<Future<List<GenericDTO>>, AsyncCallback<List<GenericDTO>>> futureCallback = AsyncUtils.make();
rpcServiceAsync.getMediaGroups(city, futureCallback._2);
return futureCallback._1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment