Package org.omegat.core.threads
Class CancellationToken
java.lang.Object
org.omegat.core.threads.CancellationToken
Cooperative cancellation token for long-running tasks.
Task code should call
throwIfCancelled() at safe points.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CancellationToken
public CancellationToken()
-
-
Method Details
-
isCancelled
public boolean isCancelled() -
throwIfCancelled
- Throws:
LongProcessInterruptedException
-
none
-
toString
-