All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bndtools.utils.jface.CancellableTask Maven / Gradle / Ivy

There is a newer version: 7.1.0
Show 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