Keep experimenting with fibers and for a good reason I need an operation, which waits until thread is exited.
https://paste.sr.ht/~abcdw/12b2547726c3061f408d3d0f3229408af214cad1
I implemented it and it works, but obviously blows up the memory. I've not finished a "Parallel Concurrent ML" paper and have a very little clue what I do in block-fn, I'll appreaciate if someone can give me a quick solution for now.
@abcdw I'd say post this on #Lemmy too. Usually you can hope for decent no-nonsense answers.
https://lemmy.ml/c/programming & https://lemmy.ml/c/programming@programming.dev are good starting points IMO