Atomically sets the given value.

        :param new_value: (object), the new value.

def set(self, new_value):
        """
        Atomically sets the given value.

        :param new_value: (object), the new value.
        """
        return self._encode_invoke(atomic_reference_set_codec,
                                   new_value=self._to_data(new_value))