Runnable.
Implementations can use all sorts of different execution strategies, such as: synchronous, asynchronous, using a thread pool, and more.
Equivalent to Java's java. interface,
so that clients may declare a dependency on an Executor and receive
any TaskExecutor implementation. This interface remains separate from
the standard Executor interface primarily for backwards compatibility
with older APIs that depend on the TaskExecutor interface.
java.util.concurrent.Executor
| Modifier and Type | Method and Description |
|---|---|
| public void | execute(Runnable
the task)Runnable to execute (never null)Redeclares java. Execute the given |
| execute | back to summary |
|---|---|
| public void execute(Runnable task) Redeclares java. Execute the given The call might return immediately if the implementation uses an asynchronous execution strategy, or might block in the case of synchronous execution.
| |