I want to build a producer-consumer program in clojure. The requirement is the consumer can drag items from the queue while the producer is putting messages into the queue, if using java I will use ConcurrentLinkedQueue, but I'm not very sure how to do it in clojure using the immutable collections, please help.
If you just want 1 consumer, just use an agent. If not see see Clojure Producer Consumer or Producer consumer with qualifications
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With