From 599c577dbd714eedcd3c83a52099adedc3380b98 Mon Sep 17 00:00:00 2001 From: Sho Ito Date: Mon, 4 Nov 2019 20:21:02 +0900 Subject: [PATCH] Mod description of run_route_chat method --- content/docs/tutorials/basic/ruby.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/tutorials/basic/ruby.md b/content/docs/tutorials/basic/ruby.md index 5906750..28da417 100644 --- a/content/docs/tutorials/basic/ruby.md +++ b/content/docs/tutorials/basic/ruby.md @@ -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`. ```ruby -resps = stub.route_chat(ROUTE_CHAT_NOTES) -resps.each { |r| p "received #{r.inspect}" } +sleeping_enumerator = SleepingEnumerator.new(ROUTE_CHAT_NOTES, 1) +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