Liking cljdoc? Tell your friends :D

nrepl.ack


handle-ack

(handle-ack h)
source

reset-ack-port!

(reset-ack-port!)
source

send-ack

(send-ack my-port ack-port)
(send-ack my-port ack-port transport-fn)
source

wait-for-ack

(wait-for-ack timeout)

Waits for a presumably just-launched nREPL server to connect and deliver its port number. Returns that number if it's delivered within timeout ms, otherwise nil. Assumes that ack middleware has been applied to the local nREPL server handler.

Expected usage:

(reset-ack-port!) (start-server already-running-server-port) => (wait-for-ack) 59872 ; the port of the server started via start-server

Waits for a presumably just-launched nREPL server to connect and
deliver its port number.  Returns that number if it's delivered
within `timeout` ms, otherwise nil.  Assumes that `ack`
middleware has been applied to the local nREPL server handler.

Expected usage:

(reset-ack-port!)
(start-server already-running-server-port)
=> (wait-for-ack)
59872 ; the port of the server started via start-server
sourceraw docstring

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

× close