[DOC] Fix example code indentation from 3 to 2
This commit is contained in:
parent
3ef6364a98
commit
7524675330
Notes:
git
2023-07-13 05:23:06 +00:00
@ -855,17 +855,17 @@ queue_closed_result(VALUE self, struct rb_queue *q)
|
|||||||
*
|
*
|
||||||
* producer = Thread.new do
|
* producer = Thread.new do
|
||||||
* 5.times do |i|
|
* 5.times do |i|
|
||||||
* sleep rand(i) # simulate expense
|
* sleep rand(i) # simulate expense
|
||||||
* queue << i
|
* queue << i
|
||||||
* puts "#{i} produced"
|
* puts "#{i} produced"
|
||||||
* end
|
* end
|
||||||
* end
|
* end
|
||||||
*
|
*
|
||||||
* consumer = Thread.new do
|
* consumer = Thread.new do
|
||||||
* 5.times do |i|
|
* 5.times do |i|
|
||||||
* value = queue.pop
|
* value = queue.pop
|
||||||
* sleep rand(i/2) # simulate expense
|
* sleep rand(i/2) # simulate expense
|
||||||
* puts "consumed #{value}"
|
* puts "consumed #{value}"
|
||||||
* end
|
* end
|
||||||
* end
|
* end
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user