I am using my own version of pmap as described here:
Is there a way to run some block atomically?
I have an array where I push data to and delete data.
At the moment I am using
findmax() and after that
deleteat where the index depends on
findmax is there a way to run these atomically?
Looks like sometimes a push changes the index and then the wrong element gets deleted.