Package nl.talsmasoftware.context.executors

Package for context aware executors.

ContextAwareExecutorService

Executor service that wraps another ExecutorService, making sure the background task operates 'within' a context snapshot taken from the submitting thread.

The executor service will make sure to close the reactivated snapshot again after the code in the task is finished, even if it throws an exception.

Both Callable and Runnable tasks are mapped.