Fork me on GitHub
#clojure-austin
<
2017-12-17
>
clojuregeek14:12:04

Has anyone used in a real app the concurrency features of clojure such as vars, dosync ?

camdez23:12:35

@clojuregeek Can you unpack that a bit more? Atoms are the most common concurrency mechanism for me. Vars you can’t really avoid using (in a fundamental way), but I rarely see them used as a concurrency mechanism. Agents seem to play second fiddle to core.async. So among the core mechanisms, these days it seems to usually come down to atoms vs. refs, and the answer depends on if you need to coordinate multiple pieces of state (and aren’t happy to just put those in a map in an atom).