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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |