(cls, actor_ref)
Remove an :class:`ActorRef <pykka.ActorRef>` from the registry.

        This is done automatically when an actor is stopped, e.g. by calling
        :meth:`Actor.stop() <pykka.Actor.stop>`.

        :param actor_ref: reference to the actor to unregister
        :type actor_ref: :class:`pykka.ActorRef`
Remove an :class:`ActorRef <pykka.ActorRef>` from the registry.
Remove an : class : ActorRef <pykka . ActorRef > from the registry .
def unregister(cls, actor_ref):
        """
        Remove an :class:`ActorRef <pykka.ActorRef>` from the registry.

        This is done automatically when an actor is stopped, e.g. by calling
        :meth:`Actor.stop() <pykka.Actor.stop>`.

        :param actor_ref: reference to the actor to unregister
        :type actor_ref: :class:`pykka.ActorRef`
        """
        removed = False
        with cls._actor_refs_lock:
            if actor_ref in cls._actor_refs:
                cls._actor_refs.remove(actor_ref)
                removed = True
        if removed:
            logger.debug(f"Unregistered {actor_ref}")
        else:
            logger.debug(f"Unregistered {actor_ref} (not found in registry)")
def unregister ( cls , actor_ref ) : removed = False with cls . _actor_refs_lock : if actor_ref in cls . _actor_refs : cls . _actor_refs . remove ( actor_ref ) removed = True if removed : logger . debug ( f"Unregistered {actor_ref}" ) else : logger . debug ( f"Unregistered {actor_ref} (not found in registry)" )