Skip to content

Commit

Permalink
Clarified that daemon threads are used in ThreadHandler.
Browse files Browse the repository at this point in the history
  • Loading branch information
crykn committed Jul 29, 2020
1 parent b6e8c0d commit 1609ecd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ public static ThreadHandler getInstance() {
* <p>
* For this, a {@linkplain Executors#newCachedThreadPool() cached thread pool}
* is used, i.e. previously constructed threads will be reused, if available,
* otherwise new threads are created.
* otherwise new threads are created. All threads are daemon threads, so they
* don't prevent the JVM from exiting.
*
* @param r
* @return
* the task to execute
* @return a {@link Future} representing pending completion of the task
*/
@SuppressWarnings("unchecked")
public Future<Void> executeRunnable(Runnable r) {
Expand Down

0 comments on commit 1609ecd

Please sign in to comment.