We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66bdec5 commit c4e854eCopy full SHA for c4e854e
README.md
@@ -154,15 +154,17 @@ service Echo {
154
155
A client can be implemented as follows:
156
```python
157
+import asyncio
158
import echo
159
+
160
from grpclib.client import Channel
-import asyncio
161
162
163
async def main():
164
channel = Channel(host="127.0.0.1", port=50051)
165
service = echo.EchoStub(channel)
- print(await service.echo(value="hello", extra_times=1))
166
+ response = await service.echo(value="hello", extra_times=1)
167
+ print(response)
168
169
async for response in service.echo_stream(value="hello", extra_times=1):
170
print(response)
0 commit comments