Skip to content

liteyuki.comm.rpc

Description: 本模块用于实现RPC(基于IPC)通信

class RPC

def __init__(self, on_calling: ON_CALLING_FUNC) -> None

Source code or View on GitHub
python
def __init__(self, on_calling: ON_CALLING_FUNC) -> None:
    self.on_calling = on_calling

def call(self, args: tuple, kwargs: dict) -> Any

Description: 调用

Source code or View on GitHub
python
def call(self, args: tuple, kwargs: dict) -> Any:
    """
        调用
        """
    return self.on_calling(args, kwargs)

Documentation built with VitePress | API references generated by litedoc