docs: def set(self, value):
          '''
          Atomically sets the value to `value`.
  
          :param value: The value to set.
          '''
          with self._reference.get_lock():
              self._reference.value = value
              return value