Skip to content

Commit 2f9b706

Browse files
committed
Pass through options to Group.
1 parent 1ca1dcc commit 2f9b706

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/async/container/generic.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def self.run(*arguments, **options, &block)
3939
UNNAMED = "Unnamed"
4040

4141
def initialize(**options)
42-
@group = Group.new
42+
@group = Group.new(**options)
4343
@running = true
4444

4545
@state = {}
@@ -48,8 +48,10 @@ def initialize(**options)
4848
@keyed = {}
4949
end
5050

51+
# @attribute [Group] The group of running children instances.
5152
attr :group
5253

54+
# @attribute [Hash(Child, Hash)] The state of each child instance.
5355
attr :state
5456

5557
# A human readable representation of the container.

0 commit comments

Comments
 (0)