def fn(): request = KiwoomOpenApiPlusService_pb2.BidirectionalListenRequest( ) request.listen_request.slots.append(self._name) # pylint: disable=no-member observer.on_next(request) observer_iterator = iter(observer) for i, response in enumerate( self._stub.BidirectionalListen(observer_iterator)): # pylint: disable=unused-variable args = convert_arguments_from_protobuf_to_python( response.arguments) callback(*args) request = KiwoomOpenApiPlusService_pb2.BidirectionalListenRequest( ) observer.on_next(request)
def _stop_observer(cls, observer): request = KiwoomOpenApiPlusService_pb2.BidirectionalListenRequest() observer.on_next(request) observer.on_completed()