Created
September 13, 2013 12:47
-
-
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?
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
// 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