Liking cljdoc? Tell your friends :D

clojure.tools.nrepl.misc

Misc utilities used in nREPL's implementation (potentially also useful for anyone extending it).

Misc utilities used in nREPL's implementation (potentially also useful
for anyone extending it).
raw docstring

logcljmacro

(log & args)
source

response-forclj

(response-for {:keys [session id]} & response-data)

Returns a map containing the :session and :id from the "request" msg as well as all entries specified in response-data, which can be one or more maps (which will be merged), or key-value pairs.

(response-for msg :status :done :value "5") (response-for msg {:status :interrupted})

The :session value in msg may be any Clojure reference type (to accommodate likely implementations of sessions) that has an :id slot in its metadata, or a string.

Returns a map containing the :session and :id from the "request" `msg`
as well as all entries specified in `response-data`, which can be one
or more maps (which will be merged), *or* key-value pairs.

(response-for msg :status :done :value "5")
(response-for msg {:status :interrupted})

The :session value in `msg` may be any Clojure reference type (to accommodate
likely implementations of sessions) that has an :id slot in its metadata,
or a string.
sourceraw docstring

returningcljmacro

(returning x & body)

Executes body, returning x.

Executes `body`, returning `x`.
sourceraw docstring

uuidclj

(uuid)

Returns a new UUID string.

Returns a new UUID string.
sourceraw docstring

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

× close