Liking cljdoc? Tell your friends :D

org.httpkit.utils


compile-ifcljmacro

(compile-if test then else)

Evaluates test. If it returns logical true (and doesn't throw), expands to then, otherwise expands to else.

Evaluates `test`. If it returns logical true (and doesn't throw), expands
to `then`, otherwise expands to `else`.
raw docstring

have-virtual-threads?clj

(have-virtual-threads?)

Returns true iff the current JVM supports virtual threads.

Returns true iff the current JVM supports virtual threads.
raw docstring

java-version>=clj

(java-version>= n)

Returns true iff Java's major version integer is >= given integer.

Returns true iff Java's major version integer is >= given integer.
raw docstring

new-workerclj

(new-worker {:as _internal-opts
             :keys [default-queue-type default-queue-size default-prefix
                    n-min-threads-factor n-max-threads-factor keep-alive-msecs]
             :or {default-queue-type :array
                  default-prefix "http-kit-worker-"
                  n-min-threads-factor 1
                  n-max-threads-factor 1}}
            {:as _user-opts
             :keys [n-min-threads n-max-threads n-threads queue-type queue-size
                    prefix allow-virtual?]
             :or {allow-virtual? true}})

Returns {:keys [n-cores type pool ...]} where :pool is a java.util.concurrent.ExecutorService.

Returns {:keys [n-cores type pool ...]} where `:pool` is a
`java.util.concurrent.ExecutorService`.
raw docstring

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

× close