r/Clojure • • May 31 '25
Using channels for concurrency
Hi everyone, I've recently read about channels and the go function in clojure for concurrency. I have some experience with go, and as such I find this solution to concurrency quite intuitive. However, I was wondering if it's really used in practice or there are different solutions that are more idiomatic?
24
Upvotes
View all comments
Show parent comment
2
u/256BitChris May 31 '25
Legit question here, but doesn't that defeat the purpose of core.async?
My understanding is that when you use the blocking operators (!!) then that will block that current thread until the response comes back, which would be just like any other synchronous/normal call.
Go loops allow you to use the non blocking operators inside go loops, which have their own separate thread pool that switches between parked execution contexts - ie true async processing.
I've only used the !! operators in the repl when I want to inspect things that come back, never in my application code - but I may be missing something.