aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--funcs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs.go b/funcs.go
index 54576ea..c3a597b 100644
--- a/funcs.go
+++ b/funcs.go
@@ -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()