i'm lookning for solution to eleminate race condition in my code. Basically i have a write and read functions. These functions are called in a stream, of values. Stream itself is going through parEvalMap(20) from fs2. I want to be sure there is no race condition between threads.
i know cats effect can context switch on fly, and a can create a single thread threadpool but isn't there more like built in solution?