Load a contract into a trusted worker owned by one extension scope.
Load a contract into a trusted worker owned by one extension scope.
(close! pool)Stop all owned workers and refuse more registrations.
Stop all owned workers and refuse more registrations.
(installed-executable environment)Get the binary for the session's pinned Babashka adapter. Do not search PATH.
Get the binary for the session's pinned Babashka adapter. Do not search PATH.
(invoke! {:keys [tools] :as entry} environment id args)Call a registered tool. A dead worker starts again for the next call. A call that loses its worker is never tried again.
Call a registered tool. A dead worker starts again for the next call. A call that loses its worker is never tried again.
(pool)Make the gateway-owned pool. Close it before gateway shutdown.
Make the gateway-owned pool. Close it before gateway shutdown.
(register! pool
{:keys [scope package-root classpath executable environment state-dir
state-scope path-env startup-timeout-ms timeout-ms]
:or {startup-timeout-ms 5000}})Load and check an installed package before publishing its registry spec.
:scope is the pool owner key. :package-root is the installed current directory. :classpath overrides the prepared package-local paths from classpath.json. Either pass the session :environment (for its pinned binary) or an absolute :executable. The same immutable package and executable reuse one worker within the scope. Pass :state-scope when different worker owners share durable extension state.
Load and check an installed package before publishing its registry spec. :scope is the pool owner key. :package-root is the installed current directory. :classpath overrides the prepared package-local paths from classpath.json. Either pass the session :environment (for its pinned binary) or an absolute :executable. The same immutable package and executable reuse one worker within the scope. Pass :state-scope when different worker owners share durable extension state.
(stop-scope! pool scope)Stop and forget all workers owned by this scope. Call before session retirement or reload.
Stop and forget all workers owned by this scope. Call before session retirement or reload.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |