Problem
I like the AtomicReference class. When used with a immutable class, it offers quite a nice and efficient abstraction for concurrent data structure. One thing it is missing, in my opinion, is the atomic update method, ie.val list = new AtomicReference(List(1,2,3)) list.update(list => list.map(_ *2))
Love it! great idea, thanks!
ReplyDeleteThis is so fucking clever ... thanks for sharing! :)
ReplyDelete