(chan-server {:keys [output-ch input-ch log-ch trace? trace-ch clock]
:or {trace? false clock (java.time.Clock/systemDefaultZone)}})
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close