Skip to main content

liteyuki.comm.rpc

SnowyKamiLess than 1 minute

liteyuki.comm.rpc

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

class RPC

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

Source code or View on GitHub
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
def call(self, args: tuple, kwargs: dict) -> Any:
    """
        调用
        """
    return self.on_calling(args, kwargs)