Skip to content

Commit 2d4c17a

Browse files
Yuhi-Satosamuel-williams-shopify
authored andcommitted
fix queues example block end
1 parent 9cbf6ad commit 2d4c17a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

context/best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Async do |task|
145145
while chunk = socket.gets
146146
queue.push(chunk)
147147
end
148-
end
148+
149149
# 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:
150150
queue.close
151151
end

guides/best-practices/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Async do |task|
168168
while chunk = socket.gets
169169
queue.push(chunk)
170170
end
171-
end
171+
172172
# 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:
173173
queue.close
174174
end

0 commit comments

Comments
 (0)