TaskExecutor is a service class that maintains a pool of threads that are used to execute instances of Tasks provided by the TaskExecutor’s clients.