software.nealk.concurrent.Task Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nealk-sdk-concurrent-lib Show documentation
Show all versions of nealk-sdk-concurrent-lib Show documentation
An easy-to-consume concurrency library allowing for "Tasks" to execute business logic in a thread safe manner. This library helps users achieve multi-threading in their applications without worrying about synchronization and blocking for race conditions.
The newest version!
package software.nealk.concurrent;
public interface Task extends Runnable{
/**
* Returns the thread-safe value of Type <?>
*
* @param
* @return - value of obj - with type <?>
* @exception InterruptedException
* @author nealk
*/
@ThreadSafe
public abstract T getVal() throws InterruptedException;
}