From e00ee8f272ee31d3fe4b69df5b62330960b942ea Mon Sep 17 00:00:00 2001 From: Yuhi-Sato Date: Fri, 10 Oct 2025 16:39:37 +0900 Subject: [PATCH] fix queues example block end --- context/best-practices.md | 2 +- guides/best-practices/readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/context/best-practices.md b/context/best-practices.md index 833e3807..60c8a8bc 100644 --- a/context/best-practices.md +++ b/context/best-practices.md @@ -145,7 +145,7 @@ Async do |task| while chunk = socket.gets queue.push(chunk) end - end + # After this point, we won't be able to add items to the queue, and popping items will eventually result in nil once all items are dequeued: queue.close end diff --git a/guides/best-practices/readme.md b/guides/best-practices/readme.md index 47f0758f..13754b9e 100644 --- a/guides/best-practices/readme.md +++ b/guides/best-practices/readme.md @@ -168,7 +168,7 @@ Async do |task| while chunk = socket.gets queue.push(chunk) end - end + # After this point, we won't be able to add items to the queue, and popping items will eventually result in nil once all items are dequeued: queue.close end