Liking cljdoc? Tell your friends :D

promesa.exec

Executors & Schedulers facilities.

Executors & Schedulers facilities.
raw docstring

cached-poolclj

(cached-pool)
(cached-pool opts)

A cached thread pool constructor.

A cached thread pool constructor.
raw docstring

current-thread-executorclj/s


CurrentThreadExecutorcljs


default-executorclj/s


default-schedulerclj/s


fixed-poolclj

(fixed-pool n)
(fixed-pool n opts)

A fixed thread pool constructor.

A fixed thread pool constructor.
raw docstring

MicrotaskExecutorcljs


resolve-executorclj/s

(resolve-executor)
(resolve-executor executor)

resolve-schedulerclj/s

(resolve-scheduler)
(resolve-scheduler scheduler)

resolve-thread-factorycljs


run!clj/s

(run! task)
(run! executor task)

Run the task in the provided executor.

Run the task in the provided executor.
raw docstring

schedule!clj/s

(schedule! ms task)
(schedule! scheduler ms task)

Schedule a callable to be executed after the ms delay is reached.

In JVM it uses a scheduled executor service and in JS it uses the setTimeout function.

Schedule a callable to be executed after the `ms` delay
is reached.

In JVM it uses a scheduled executor service and in JS
it uses the `setTimeout` function.
raw docstring

scheduled-poolclj

(scheduled-pool)
(scheduled-pool n)
(scheduled-pool n opts)

A scheduled thread pool constructo.

A scheduled thread pool constructo.
raw docstring

ScheduledExecutorcljs


ScheduledTaskcljs


single-poolclj

(single-pool)
(single-pool opts)

A single thread pool constructor.

A single thread pool constructor.
raw docstring

submit!clj/s

(submit! task)
(submit! executor task)

Submit a task to be executed in a provided executor and return a promise that will be completed with the return value of a task.

A task is a plain clojure function.

Submit a task to be executed in a provided executor
and return a promise that will be completed with
the return value of a task.

A task is a plain clojure function.
raw docstring

work-stealing-poolclj

(work-stealing-pool)
(work-stealing-pool n)

Creates a work-stealing thread pool.

Creates a work-stealing thread pool.
raw docstring

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

× close