Attempts to cancel this task.
Attempts to cancel this task.
This method behaves the same as
java.util.concurrent.FutureTask.cancel()
.
See its documentation for more details.
whether or not to attempt to cancel the task if it has already been started
true
if the task was cancelled by this invocation; false
otherwise
Returns a Future which will contain the result of this task when it is completed.
Returns a Future which will contain the result of this task when it is completed.
a Future which will contain the result of this task when it is completed
Returns true
if the task was cancelled before completing; false
otherwise.
Returns true
if the task was cancelled before completing; false
otherwise.
If this method returns true
, then future will fail with a
CancellationException.
true
if the task was cancelled before completing; false
otherwise
An asynchronously executed task which can be cancelled before or during its execution.
the return type of
body