Is there any example of Worker with class that hav...
# multiplatform
k
Is there any example of Worker with class that have mutableMap inside it, and allow to add/remove entries from different BG threads in ios? Only one worker will try to access data at a time, but because of ios, it could be from different threads.
a
o
see snippet below, but note, that in many cases concurrent map is excessive, and better be replaced with bigger granularity tasks scheduled to the dedicated worker.
👍 1