With earlier changes, Prog::Base#donate is only called by Prog::Base#reap (outside a couple of test calls that don't need to call it). Moving donate into reap avoids a redundant child query. When we would call donate, we already know which children are active, because reap already selected all children, and separated them into reapable children and active children.
14 KiB
14 KiB