14 """The Python AsyncIO implementation of the GRPC hellostreamingworld.MultiGreeter client."""
20 import hellostreamingworld_pb2
21 import hellostreamingworld_pb2_grpc
24 async
def run() -> None:
25 async
with grpc.aio.insecure_channel(
"localhost:50051")
as channel:
29 async
for response
in stub.sayHello(
31 print(
"Greeter client received from async generator: " +
35 hello_stream = stub.sayHello(
38 response = await hello_stream.read()
39 if response == grpc.aio.EOF:
41 print(
"Greeter client received from direct read: " +
45 if __name__ ==
"__main__":