class Concurrent::SingleThreadExecutor
@!macro abstract_executor_service_public_api
The API and behavior of this class are based on Java’s ‘SingleThreadExecutor`.
automatically be restarted.
to errors from within tasks. Also, should the thread die it will
encapsulates all these bahaviors. The task processor is highly resilient
constantly monitored and restarted should it die. `SingleThreadExecutor`
susceptible to errors during processing. Also, the thread itself must be
is received. This pattern has several issues. The thread itself is highly
source (perhaps blocking I/O or a queue) and processes each input as it
on which an infinite loop is run. The thread’s loop blocks on an input
A common pattern for background processing is to create a single thread
the executor will always remain viable and available to process jobs.
die for any reason it will be removed and replaced, thus ensuring that
A thread pool with a single thread an unlimited queue. Should the thread
@!macro single_thread_executor