Skip to content

Instantly share code, notes, and snippets.

@nkpart
Created July 30, 2008 01:39
Show Gist options
  • Save nkpart/3210 to your computer and use it in GitHub Desktop.
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