You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would personally have expected this to behave similarly to a regular type that would have it's default value returned when trying to access it before it has been changed. This would make the package a lot more useful for my use cases as I can avoid a lot of constructors or sync.Once by just letting the atomic types be part of the struct fields and then stored when it changes.
The text was updated successfully, but these errors were encountered:
Jacalz
changed the title
Panic if Load() is called befor Store()
Panic if Load() is called before Store()
Aug 1, 2021
I am getting this error when
Load()
happens before a call toStore()
(with bool as an example here).I would personally have expected this to behave similarly to a regular type that would have it's default value returned when trying to access it before it has been changed. This would make the package a lot more useful for my use cases as I can avoid a lot of constructors or
sync.Once
by just letting the atomic types be part of the struct fields and then stored when it changes.The text was updated successfully, but these errors were encountered: