INNER CODE UNIT · Python

wait

permitio/fastapi_websocket_rpc · fastapi_websocket_rpc/rpc_channel.py:68

    def wait(self):
        """
        Wait on the internal event - triggered on response
        """
        return self._event.wait()


class RpcProxy:
    """
    Helper class
    provide a __call__ interface for an RPC method over a given channel
    """

    def __init__(self, channel, method_name) -> None:
        self.method_name = method_name
        self.channel = channel

    def __call__(self, **kwds: Any) -> Any:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…