Fork me on GitHub

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


@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).