8000 Follow-up barrier in scope docs fix (#254) · socketry/async@3fad47a · GitHub
[go: up one dir, main page]

Skip to content

Commit 3fad47a

Browse files
authored
Follow-up barrier in scope docs fix (#254)
This makes the same change as #253 but in this file.
1 parent c1f9d32 commit 3fad47a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/async/barrier.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ A synchronization primitive, which allows one task to wait for a number of other
77
require 'async'
88
require 'async/barrier'
99

10+
barrier = Async::Barrier.new
1011
Sync do
1112
Console.logger.info("Barrier Example: sleep sort.")
12-
barrier = Async::Barrier.new
1313

1414
# Generate an array of 10 numbers:
1515
numbers = 10.times.map{rand(10)}

0 commit comments

Comments
 (0)
0