
delight.concurrency.wrappers.SimpleExecutor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of delight-concurrency Show documentation
Show all versions of delight-concurrency Show documentation
An abstract and lightweight definition of concurrency fundamentals.
The newest version!
package delight.concurrency.wrappers;
import delight.async.callbacks.SimpleCallback;
public interface SimpleExecutor {
/**
* Returns an object representing the thread used to execute the runnable if
* available.
*
* @param runnable
* @return
*/
public void execute(Runnable runnable);
public int pendingTasks();
/**
*
* @param runnable
* @param timeout
* The timeout in ms when the task should cancel.
*/
public void execute(Runnable runnable, int timeout, Runnable onTimeout);
public void shutdown(SimpleCallback callback);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy