(cached-executor)
(cached-executor thread-factory)
Creates a thread pool that creates new threads as needed, but will reuse previously constructed threads when they are available
Creates a thread pool that creates new threads as needed, but will reuse previously constructed threads when they are available
(clojure-future-executor)
Returns the thread pool used by clojure.core/future.
Returns the thread pool used by clojure.core/future.
(current-thread-executor)
Returns an executor that will run task in calling thread
Returns an executor that will run task in calling thread
(fixed-size-executor {:keys [num-threads thread-factory]
:or {thread-factory (Executors/defaultThreadFactory)}})
Returns a new fixed size executor of size num-threads
.
Returns a new fixed size executor of size `num-threads`.
(fork-join-executor)
Returns forkJoin commonPool Executor
Returns forkJoin commonPool Executor
(single-executor)
(single-executor thread-factory)
Creates an Executor that uses a single worker thread operating off an unbounded queue.
Creates an Executor that uses a single worker thread operating off an unbounded queue.
(work-stealing-executor)
(work-stealing-executor parallelism)
Creates a thread pool that maintains enough threads to support the given parallelism level, and may use multiple queues to reduce contention. Arity 1 will have parallelism = available processors
Creates a thread pool that maintains enough threads to support the given parallelism level, and may use multiple queues to reduce contention. Arity 1 will have parallelism = available processors
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close