(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close