Fork me on GitHub
#core-async
<
2021-07-21
>
colinkahn13:07:33

I'm looking at building my own buffer implementation. Is what I do inside the buffer methods thread safe? It will have some state I'll need to update, and my first pass uses an atom, but I feel like it might not be necessary and maybe not performant.

Alex Miller (Clojure team)13:07:24

I don't have context loaded, but I believe buffers are only accessed under the channel lock

colinkahn14:07:34

Ok thanks. That's consistent with what i gathered from looking at the existing implementions but wanted to double check.