A handler for rejected tasks that runs the rejected task directly in the calling thread of the execute method, unless the executor has been shut down, in which case the task is discarded.
A handler for rejected tasks that runs the rejected task directly in the calling thread of the execute method, unless the executor has been shut down, in which case the task is discarded.
(->caller-runs-policy)
Constructor.
Creates a CallerRunsPolicy.
Constructor. Creates a CallerRunsPolicy.
(rejected-execution this r e)
Executes task r in the caller's thread, unless the executor has been shut down, in which case the task is discarded.
r - the runnable task requested to be executed - java.lang.Runnable
e - the executor attempting to execute this task - java.util.concurrent.ThreadPoolExecutor
Executes task r in the caller's thread, unless the executor has been shut down, in which case the task is discarded. r - the runnable task requested to be executed - `java.lang.Runnable` e - the executor attempting to execute this task - `java.util.concurrent.ThreadPoolExecutor`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close