1067 |
|
} |
1068 |
|
|
1069 |
|
/** |
1070 |
< |
* Removes this task from internal queue if it is present, thus |
1071 |
< |
* causing it not to be run if it has not already started. This |
1072 |
< |
* method may be useful as one part of a cancellation scheme. |
1070 |
> |
* Removes this task from the executor's internal queue if it is |
1071 |
> |
* present, thus causing it not to be run if it has not already |
1072 |
> |
* started. |
1073 |
> |
* |
1074 |
> |
* <p> This method may be useful as one part of a cancellation |
1075 |
> |
* scheme. It may fail to remove tasks that have been converted |
1076 |
> |
* into other forms before being placed on the internal queue. For |
1077 |
> |
* example, a task entered using <tt>submit</tt> might be |
1078 |
> |
* converted into a form that maintains <tt>Future</tt> status. |
1079 |
> |
* However, in such cases, method {@link ThreadPoolExecutor#purge} |
1080 |
> |
* may be used to remove those Futures that have been cancelled. |
1081 |
> |
* |
1082 |
|
* |
1083 |
|
* @param task the task to remove |
1084 |
|
* @return true if the task was removed |