Hi guys, I have 1 mutualized set of data that will be query by multiple thread, the idea is to query this set and return and remove it from the set
For example the set can contains ResquestObjects (date,level,subject)
I need to query to find the last request with subject = A and immediately remove it
in java I would have used synchronized for that
is there a better solution?
I use Kotlin, RxJava and Vertx