lib/async/task.rb in async-1.17.1 vs lib/async/task.rb in async-1.18.0

- old
+ new

@@ -132,10 +132,10 @@ # Soon to become attr :result # Stop the task and all of its children. # @return [void] def stop - @children.each(&:stop) + @children&.each(&:stop) if @fiber.alive? @fiber.resume(Stop.new) end end