Conditional concurrency
I am reading data objects from a queue. Each data object has a type, for instance “color” (eg. yellow, green, orange) . I would like to process all data objects of the same color sequential, but objects of different colors should be processed in parallel. I have been studying coroutines. So far, I didn’t find a solution. Anybody has an idea?
1 post - 1 participant
Read full topic