def __init__(self, system_dispatcher=None):
        """
        The actor system is responsible for creating, configuring and stopping actors and
        dispatchers.

        Normally, only one system per application should be created.

        :param system_dispatcher: Override the dispatcher used by the system. This also acts as the
            default dispatcher for new actors.
        :type system_dispatcher: :class:`Dispatcher`
        """
        self._system_dispatcher = Dispatcher(Executor()) \
            if system_dispatcher is None else system_dispatcher
        self._dead_letters = _DeadLetterRef()

        self._terminate_promise = Promise()

        class Guardian(Actor):
            def __init__(me):
                me._logger = logging.getLogger(__name__)

            def receive(me, message):
                me._logger.warning("User receive called. This should not be happen.")

            def post_stop(me):
                self._terminate_promise.complete(None)

        self._guardian = InternalRef(actors.internal.cell.Cell(Guardian,
            dispatcher=self._system_dispatcher, system=self, parent=None))
        self._guardian.send_system_message(Start)

        actors.internal.factory.ActorFactory.__init__(self, self, self._guardian)
def __init__ ( self , system_dispatcher = None ) : self . _system_dispatcher = Dispatcher ( Executor ( ) ) if system_dispatcher is None else system_dispatcher self . _dead_letters = _DeadLetterRef ( ) self . _terminate_promise = Promise ( ) class Guardian ( Actor ) : def __init__ ( me ) : me . _logger = logging . getLogger ( __name__ ) def receive ( me , message ) : me . _logger . warning ( "User receive called. This should not be happen." ) def post_stop ( me ) : self . _terminate_promise . complete ( None ) self . _guardian = InternalRef ( actors . internal . cell . Cell ( Guardian , dispatcher = self . _system_dispatcher , system = self , parent = None ) ) self . _guardian . send_system_message ( Start ) actors . internal . factory . ActorFactory . __init__ ( self , self , self . _guardian )
The actor system is responsible for creating, configuring and stopping actors and
        dispatchers.

        Normally, only one system per application should be created.

        :param system_dispatcher: Override the dispatcher used by the system. This also acts as the
            default dispatcher for new actors.
        :type system_dispatcher: :class:`Dispatcher`