# 程序包的使用
org.springframework.core.task

- 使用org.springframework.core.task的程序包
  程序包 | 说明
  --- | ---
  org.springframework.core.task | This package defines Spring's core TaskExecutor abstraction, and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
  org.springframework.core.task.support | Support classes for Spring's TaskExecutor abstraction.

- org.springframework.core.task使用的org.springframework.core.task中的类
  类和说明
  AsyncListenableTaskExecutor Extension of the `AsyncTaskExecutor` interface, adding the capability to submit tasks for `ListenableFuture`s.
  AsyncTaskExecutor Extended interface for asynchronous `TaskExecutor` implementations, offering an overloaded `AsyncTaskExecutor.execute(Runnable, long)` variant with a start timeout parameter as well support for `Callable`.
  TaskDecorator A callback interface for a decorator to be applied to any `Runnable` about to be executed.
  TaskExecutor Simple task executor interface that abstracts the execution of a `Runnable`.
  TaskRejectedException Exception thrown when a `TaskExecutor` rejects to accept a given task for execution.

- org.springframework.core.task.support使用的org.springframework.core.task中的类
  类和说明
  AsyncListenableTaskExecutor Extension of the `AsyncTaskExecutor` interface, adding the capability to submit tasks for `ListenableFuture`s.
  AsyncTaskExecutor Extended interface for asynchronous `TaskExecutor` implementations, offering an overloaded `AsyncTaskExecutor.execute(Runnable, long)` variant with a start timeout parameter as well support for `Callable`.
  TaskDecorator A callback interface for a decorator to be applied to any `Runnable` about to be executed.
  TaskExecutor Simple task executor interface that abstracts the execution of a `Runnable`.