Skip to main content

liteyuki.comm.rpc

SnowyKamiLess than 1 minute

class RPC

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

Source code
def __init__(self, on_calling: ON_CALLING_FUNC) -> None:
    self.on_calling = on_calling

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

Description: 调用

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

var ON_CALLING_FUNC = Callable[[tuple, dict], Any]

  • Type: TypeAlias