diff options
Diffstat (limited to 'funcs.go')
-rw-r--r-- | funcs.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -108,7 +108,7 @@ func AtomicGet[T any](v *Var[T]) T { } // AtomicSet is a helper function that atomically writes a value. -func AtomicSet[T any](v *Var[T], val interface{}) { +func AtomicSet[T any](v *Var[T], val T) { v.mu.Lock() v.changeValue(val) v.mu.Unlock() |