org.httpkit.utils

compile-if

macro

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

have-virtual-threads?

(have-virtual-threads?)
Returns true iff the current JVM supports virtual threads.

java-version>=

(java-version>= n)
Returns true iff Java's major version integer is >= given integer.

new-worker

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