mirror of https://github.com/grpc/grpc.io.git
Mod description of run_route_chat method
This commit is contained in:
parent
3853277214
commit
599c577dbd
|
|
@ -363,8 +363,8 @@ Finally, let's look at our bidirectional streaming RPC `route_chat`. In this
|
||||||
case, we pass `Enumerable` to the method and get back an `Enumerable`.
|
case, we pass `Enumerable` to the method and get back an `Enumerable`.
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
resps = stub.route_chat(ROUTE_CHAT_NOTES)
|
sleeping_enumerator = SleepingEnumerator.new(ROUTE_CHAT_NOTES, 1)
|
||||||
resps.each { |r| p "received #{r.inspect}" }
|
stub.route_chat(sleeping_enumerator.each_item) { |r| p "received #{r.inspect}" }
|
||||||
```
|
```
|
||||||
|
|
||||||
Although it's not shown well by this example, each enumerable is independent of
|
Although it's not shown well by this example, each enumerable is independent of
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue