Quantcast
Channel: Clojure swap! atom executed in parallel - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Alan Thompson for Clojure swap! atom executed in parallel

What you want is to serialize the output stream from a group of concurrently executing threads. You could use an agent to serialize access to a piece of mutable state, but here you have a degenerate...

View Article



Answer by andy_fingerhut for Clojure swap! atom executed in parallel

A Clojure atom is designed specifically so that in a multi-threaded program, there can be multiple threads executing swap! on a single atom, and if your program does this, those update functions f...

View Article

Clojure swap! atom executed in parallel

I'm playing with clojure to do a script to read as input a sequence of URIs from a file and do a report on the status code for them.I've implemented this using clojure.core.async/pipeline-async to...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images