Mod description of run_route_chat method

This commit is contained in:
Sho Ito 2019-11-04 20:21:02 +09:00
parent 3853277214
commit 599c577dbd
1 changed files with 2 additions and 2 deletions

View File

@ -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