org.bndtools.utils.jface.CancellableTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.bndtools.templating.gitrepo Show documentation
Show all versions of org.bndtools.templating.gitrepo Show documentation
org.bndtools.templating.gitrepo
The newest version!
package org.bndtools.utils.jface;
import org.eclipse.jface.operation.IRunnableWithProgress;
public interface CancellableTask extends IRunnableWithProgress {
/**
* Called to signal the cancellation of the task. The task service will call
* {@link Thread#interrupt()} on the thread executing the task, but that is
* not always enough to interrupt some threads, for example those blocked in
* IO. By implementing this method, tasks can perform any special steps
* necessary to interrupt properly such as closing a socket.
*/
void cancel();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy