1.2.0 permalink Arrow_down_16x16
  • (repl project)
Start a repl session for the current project.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source leiningen/repl.clj:55 top

(defn repl
  "Start a repl session for the current project."
  [project]
  (let [port (dec (+ 1024 (rand-int 64512)))
        server-form (repl-server project port)
        server-thread (Thread. #(try (eval-in-project project server-form)
                                     (catch Exception _)))]
    (.start server-thread)
    (poll-for-socket port)
    (.stop server-thread)))
Vars in leiningen.repl/repl: defn let
Used in 0 other vars

Comments top

No comments for repl. Log in to add a comment.