@FunctionalInterface
public interface Task
Runnable or Callable.| Modifier and Type | Method and Description |
|---|---|
static java.util.concurrent.Callable |
callableOf(Task task)
Wraps a task into a callable that returns
null. |
void |
run()
Runs a code or throws an exception if unable to do so.
|
static java.lang.Runnable |
runnableOf(Task task)
Wraps a task into a runnable.
|
static java.lang.Runnable runnableOf(Task task)
static java.util.concurrent.Callable callableOf(Task task)
null.void run() throws java.lang.Exception
java.lang.Exception - if unable to execute taskCopyright © 2003-present Jodd Team