Does the value of AtomicReference will be set lazily if we assign a function to it which returns some array?

后端 未结 0 711
面向向阳花
面向向阳花 2020-12-19 03:59

I have this piece of code:

AtomicReference> atomicStrings = new AtomicReference<>();
atomicStrings.set(someFunc());
Thread.slee         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题