code: def reset(self, newval):
          '''
          Resets the atom's value to `newval`, returning `newval`.
  
          :param newval: The new value to set.
          '''
          oldval = self._state.get()
          self._state.set(newval)
          self.notify_watches(oldval, newval)
          return newvaf reset(self, newval):
          '''
          Resets the atom's value to `newval`, returning `newval`.
  
          :param newval: The new value to set.
          '''
          oldval = self._state.get()
          self._state.set(newval)
          self.notify_watches(oldval, newval)
          return newval
docs: Resets the atom's value to `newval`, returning `newval`.
  
          :param newval: The new value to set.