Liking cljdoc? Tell your friends :D

clojure.tools.nrepl.ack


handle-ackclj

(handle-ack h)
source

reset-ack-port!clj

(reset-ack-port!)
source

send-ackclj

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

wait-for-ackclj

(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