(chan-server {:keys [output-ch input-ch log-ch trace? trace-level trace-ch clock
on-close response-executor]
:or {clock (java.time.Clock/systemDefaultZone)
on-close (constantly nil)
response-executor :default}})(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 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 |