Skip to content

Instantly share code, notes, and snippets.

@axiak
Created May 19, 2011 01:07
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 axiak/979956 to your computer and use it in GitHub Desktop.
Save axiak/979956 to your computer and use it in GitHub Desktop.
class MyJobRunner extends Job<List<Something>> {
// ...
public List<Something> doJobWithResult() throws Exception {
// some preparation logic
List<List<Something>> = await(F.Promise.waitAll(firstJob.now(), secondJob.now(), ...));
// some merging logic...
return ...;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment