Ejemplo n.º 1
0
    def __init__(self) -> None:
        """ :param node: pyrlang.node.Node
        """
        Process.__init__(self)
        node = self.node_db.get()
        node.register_name(self, Atom('rex'))

        self.traceback_depth_ = 5
        """ This being non-zero enables formatting exception tracebacks with the
Ejemplo n.º 2
0
 def __init__(self) -> None:
     Process.__init__(self)
     self.get_node().register_name(self, Atom('my_process'))  # optional
     LOG.info("Registering process - 'my_process'")
Ejemplo n.º 3
0
 def __init__(self, calling_process: Process, destination_pid):
     self._calling_process = calling_process
     self._destination_pid = destination_pid
     self._node = calling_process.get_node()
Ejemplo n.º 4
0
 def __init__(self) -> None:
     Process.__init__(self)
Ejemplo n.º 5
0
 def exit(self, reason=None):
     #
     # 1.2. Exiting remote linked process should also exit this process
     #
     LOG.info("LinkExample6: Received EXIT(%s)" % reason)
     Process.exit(self, reason)