Skip to content

liteyuki.comm.rpc

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

class RPC

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

源代码在GitHub上查看
python
def __init__(self, on_calling: ON_CALLING_FUNC) -> None:
    self.on_calling = on_calling

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

说明: 调用

源代码在GitHub上查看
python
def call(self, args: tuple, kwargs: dict) -> Any:
    """
        调用
        """
    return self.on_calling(args, kwargs)

文档由 VitePress 构建 | API引用由 litedoc 生成