refcount/__init__.py
def add(self, value):
        """
        Add to a reference count

        If the reference count becomes higher than 0, the acquire callback (if provided) will be automatically
        triggered.

        >>> from refcount import Refcounter
        >>> ref = Refcounter()
        >>> ref.add(2)
        >>> ref.usecount
        3

        :param value: Amount to add
        :type value: int
        """
        if self._usecount == 0 and self._acquire:
            self._usecount += value
            self._acquire()
        else:
            self._usecount += value

        Add to a reference count

        If the reference count becomes higher than 0, the acquire callback (if provided) will be automatically
        triggered.

        >>> from refcount import Refcounter
        >>> ref = Refcounter()
        >>> ref.add(2)
        >>> ref.usecount
        3

        :param value: Amount to add
        :type value: int
        
Add to a reference count
If the reference count becomes higher than 0, the acquire callback (if provided) will be automatically
triggered.


Add to a reference count If the reference count becomes higher than 0 the acquire callback ( if provided ) will be automatically triggered .
def add(self, value):
        if self._usecount == 0 and self._acquire:
            self._usecount += value
            self._acquire()
        else:
            self._usecount += value
def add ( self , value ) : if self . _usecount == 0 and self . _acquire : self . _usecount += value self . _acquire ( ) else : self . _usecount += value
Add to a reference count
If the reference count becomes higher than 0, the acquire callback (if provided) will be automatically
triggered.
Add to a reference count If the reference count becomes higher than 0 the acquire callback ( if provided ) will be automatically triggered .
"""
        Add to a reference count

        If the reference count becomes higher than 0, the acquire callback (if provided) will be automatically
        triggered.

        >>> from refcount import Refcounter
        >>> ref = Refcounter()
        >>> ref.add(2)
        >>> ref.usecount
        3

        :param value: Amount to add
        :type value: int
        """
self
value
Amount to add
Amount to add