Liking cljdoc? Tell your friends :D

lsp4clj.server


chan-serverclj

(chan-server
  {:keys [output-ch input-ch log-ch trace? trace-level trace-ch clock on-close]
   :or {clock (java.time.Clock/systemDefaultZone) on-close (constantly nil)}})
source

discarding-stdoutcljmacro

(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.
sourceraw docstring

IBlockingDerefOrCancelcljprotocol

deref-or-cancelclj

(deref-or-cancel this timeout-ms timeout-val)
source

null-output-stream-writerclj

source

pending-received-requestclj

(pending-received-request method context params)
source

pending-requestclj

(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.
sourceraw docstring

receive-notificationcljmultimethod

source

receive-requestcljmultimethod

source

send-notificationclj

source

send-requestclj

source

set-trace-levelclj

(set-trace-level server trace-level)
source

shutdownclj

source

startclj

source

traceclj

(trace {:keys [tracer* trace-ch]} trace-f & params)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close