Liking cljdoc? Tell your friends :D

qbits.auspex.executor


cached-executorclj

(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
sourceraw docstring

clojure-future-executorclj

(clojure-future-executor)

Returns the thread pool used by clojure.core/future.

Returns the thread pool used by clojure.core/future.
sourceraw docstring

current-threadclj

(current-thread)

Returns current thread

Returns current thread
sourceraw docstring

current-thread-executorclj

(current-thread-executor)

Returns an executor that will run task in calling thread

Returns an executor that will run task in calling thread
sourceraw docstring

fixed-size-executorclj

(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`.
sourceraw docstring

fork-join-executorclj

(fork-join-executor)

Returns forkJoin commonPool Executor

Returns forkJoin commonPool Executor
sourceraw docstring

single-executorclj

(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.
sourceraw docstring

thread-factoryclj

(thread-factory {:keys [fmt priority daemon]})
source

work-stealing-executorclj

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close