public interface Cancelable
|Modifier and Type||Method and Description|
Cancels the operation execution, with the given reason for doing so.
Gets a message describing why the operation was canceled.
Gets whether the operation has been canceled.
void cancel(String reason)
This method merely sets the operation status to canceled; it cannot
necessarily stop the operation itself. That is, it is the responsibility of
each individual operation to check
isCanceled() in a timely manner
during execution, and stop doing whatever it is doing if the flag has been
reason- A message describing why the operation is being canceled.
Copyright © 2015–2019 SciJava. All rights reserved.