Skip to content

Instantly share code, notes, and snippets.

@yayitswei
Created September 13, 2013 12:47
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 yayitswei/6550221 to your computer and use it in GitHub Desktop.
Save yayitswei/6550221 to your computer and use it in GitHub Desktop.
add a callback. what's an idiomatic way to do this in Clojure?
// com.google.common.util.concurrent.MoreExecutors
sendResult.broadcastComplete.addListener(new Runnable() {
@Override
public void run() {
System.out.println("Complete!");
}
}, MoreExecutors.sameThreadExecutor());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment