Shut down the thread pool when required.
Shut down the thread pool when required. This will interrupt all threads and clear the worker and the scheduler queues.
Usually this is not needed in application code. Call this method in a situation when work has to be stopped immediately.
A pool of execution threads, or another way of running tasks (could use actors or whatever else). Tasks submitted for execution can have Chymyst-specific info (useful for debugging) when scheduled using
runReaction
. The pool can be shut down, in which case all further tasks will be refused.