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

current-thread-executorclj/s

source

CurrentThreadExecutorcljs

source

default-executorclj/s

source

default-schedulerclj/s

source

fixed-poolclj

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

A fixed thread pool constructor.

A fixed thread pool constructor.
sourceraw docstring

MicrotaskExecutorcljs

source

resolve-executorclj/s

(resolve-executor)
(resolve-executor executor)
source

resolve-schedulerclj/s

(resolve-scheduler)
(resolve-scheduler scheduler)
source

resolve-thread-factorycljs

source

run!clj/s

(run! task)
(run! executor task)

Run the task in the provided executor.

Run the task in the provided executor.
sourceraw 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.
sourceraw docstring

scheduled-poolclj

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

A scheduled thread pool constructo.

A scheduled thread pool constructo.
sourceraw docstring

ScheduledExecutorcljs

source

ScheduledTaskcljs

source

single-poolclj

(single-pool)
(single-pool opts)

A single thread pool constructor.

A single thread pool constructor.
sourceraw 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.
sourceraw docstring

work-stealing-poolclj

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

Creates a work-stealing thread pool.

Creates a work-stealing thread pool.
sourceraw docstring

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

× close