Package org.omegat.core.threads
Class LongProcessHandle<T>
java.lang.Object
org.omegat.core.threads.LongProcessHandle<T>
A handle returned to callers when a long-running task is started.
Provides a single, consistent way to cancel and to await completion.
-
Method Details
-
token
-
completion
-
cancel
public void cancel()Requests cancellation cooperatively and interrupts the worker thread.
-