If you would like to immediately block waiting for a task, you can use constructions of the form result = exec.submit(aProcess).get();
Note: The {@link Processors} class includes a set of methodsthat can convert some other common closure-like objects, for example, {@link Callable} to {@link Process} form sothey can be submitted. @param task the task to submit @return a Progress representing pending completion of the task @throws RejectedExecutionException if task cannot be scheduled for execution @throws NullPointerException if task null
|
|
|
|