You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/kernel/barrier.rb
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,20 @@
5
5
6
6
require_relative"sync"
7
7
require_relative"../async/barrier"
8
+
require_relative"../async/idler"
8
9
9
10
moduleKernel
10
11
# Create a barrier, yield it to the block, and then wait for all tasks to complete.
11
12
#
12
13
# If no scheduler is running, one will be created automatically for the duration of the block.
13
14
#
15
+
# By default, the barrier uses an `Async::Idler` to manage load, but this can be overridden by providing a different parent or `nil` to disable load management.
16
+
#
14
17
# @parameter parent [Task | Semaphore | Nil] The parent for holding any children tasks.
15
18
# @parameter **options [Hash] Additional options passed to {Kernel::Sync}.
0 commit comments