mirror of https://github.com/deavmi/JavaOCP
parent
af336201a5
commit
cc4b84354f
|
@ -15,14 +15,14 @@ public class App
|
|||
public static void main(String[] args)
|
||||
{
|
||||
/**
|
||||
* The <code>Executor</code> provides us with a
|
||||
* The {@link Executor} provides us with a
|
||||
* task executing engine which let's us submit
|
||||
* tasks to it and manage them so forth.
|
||||
*
|
||||
* The <code>ExecutorService</code> is a more
|
||||
* The {@link ExecutorService} is a more
|
||||
* managed version of the above including
|
||||
* scheduling queues, the ability to submit tasks
|
||||
* and obtain a <code>Future</code> for them
|
||||
* and obtain a {@link Future} for them
|
||||
* (of which can be awaited upon once the task
|
||||
* completes).
|
||||
*/
|
||||
|
@ -88,7 +88,7 @@ public class App
|
|||
* Shutdown the executor
|
||||
*/
|
||||
executor.shutdown();
|
||||
|
||||
|
||||
/**
|
||||
* We then will await termination of all jobs
|
||||
* and throw an exception if we time out after
|
||||
|
|
Loading…
Reference in New Issue