(chan-server {:keys [output-ch input-ch log-ch trace? trace-ch clock on-close]
:or {clock (java.time.Clock/systemDefaultZone)
on-close (constantly nil)}})
(discarding-stdout & body)
Evaluates body in a context in which writes to out are discarded.
Evaluates body in a context in which writes to *out* are discarded.
(deref-or-cancel this timeout-ms timeout-val)
(pending-request id method started server)
Returns an object representing a pending JSON-RPC request to a remote endpoint. Deref the object to get the response.
Most of the time, you should call lsp4clj.server/deref-or-cancel
on the
object. This has the same signature as clojure.core/deref
with a timeout. If
the client produces a response, will return it, but if the timeout is reached
will cancel the request by sending a $/cancelRequest
notification to the
client.
Otherwise, the object presents the same interface as future
. Responds to
future-cancel
(which sends $/cancelRequest
), realized?
, future?
future-done?
and future-cancelled?
.
If the request is cancelled, future invocations of deref
will return
:lsp4clj.server/cancelled
.
Sends $/cancelRequest
only once, though lsp4clj.server/deref-or-cancel
or
future-cancel
can be called multiple times.
Returns an object representing a pending JSON-RPC request to a remote endpoint. Deref the object to get the response. Most of the time, you should call `lsp4clj.server/deref-or-cancel` on the object. This has the same signature as `clojure.core/deref` with a timeout. If the client produces a response, will return it, but if the timeout is reached will cancel the request by sending a `$/cancelRequest` notification to the client. Otherwise, the object presents the same interface as `future`. Responds to `future-cancel` (which sends `$/cancelRequest`), `realized?`, `future?` `future-done?` and `future-cancelled?`. If the request is cancelled, future invocations of `deref` will return `:lsp4clj.server/cancelled`. Sends `$/cancelRequest` only once, though `lsp4clj.server/deref-or-cancel` or `future-cancel` can be called multiple times.
(stdio-server {:keys [in out] :as opts})
DEPRECATED: Will be removed in a future release. Prefer lsp4clj.io-server/server or lsp4clj.io-server/stdio-server.
DEPRECATED: Will be removed in a future release. Prefer lsp4clj.io-server/server or lsp4clj.io-server/stdio-server.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close