程序包 cn.taketoday.core.task
package cn.taketoday.core.task
This package defines core TaskExecutor abstraction,
and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
-
类说明Extension of the
AsyncTaskExecutorinterface, adding the capability to submit tasks forListenableFutures.Extended interface for asynchronousTaskExecutorimplementations, offering an overloadedAsyncTaskExecutor.execute(Runnable, long)variant with a start timeout parameter as well support forCallable.TaskExecutorimplementation that fires up a new Thread for each task, executing it asynchronously.TaskExecutorimplementation that executes each task synchronously in the calling thread.A callback interface for a decorator to be applied to anyRunnableabout to be executed.Simple task executor interface that abstracts the execution of aRunnable.Exception thrown when aTaskExecutorrejects to accept a given task for execution.Exception thrown when aAsyncTaskExecutorrejects to accept a given task for execution because of the specified timeout.