...
Similarly, when attempting to cancel individual tasks within the thread pool using the Future.cancel()
method, ensure that the tasks support interruption. If they do, pass a boolean
argument true
to cancel()
, otherwise pass false
. The value false
indicates that a the corresponding task will be canceled if it has not already started.
...