Skip to content

Instantly share code, notes, and snippets.

@nkpart
Created July 30, 2008 01:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nkpart/3210 to your computer and use it in GitHub Desktop.
private <A,T> Runnable combine(final Callable<T> c, final Actor<T> a) {
return new Runnable() {
public void run() {
try {
a.act(c.call());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment