Program Structure when muliple routines need to access State

it seems like a work for a lock. check this thread: Poor performance of `lock(l) do` closures, caused by poor performance of capturing closures

1 Like