oh, perfect. aleph.netty/wait-for-close looks like exactly the kind of
thing I wanted. thanks!
Andrea Richiardi wrote:
I do the following in my code (where system/http is a mount var, the
eval result of start-server):
(ns ...
(:require [aleph.netty :as netty])
(defn -main
[& args]
(mount/sta
I do the following in my code (where system/http is a mount var, the eval
result of start-server):
(ns ...
(:require [aleph.netty :as netty])
(defn -main
[& args]
(mount/start args)
(netty/wait-for-close server/http))
On Wednesday, June 8, 2016 at 7:53:25 AM UTC-7, Nate Young wrote:
>
In both of your solutions you are stopping main thread from exiting, you
could j.c.u CountDountLatch that could have same number of lines as the
second solution but has clearer intent.
BTW, aleph.http/start-server returns closable object if you are planning to
do something fancy.
Kurman
On Wed,