lib/async/task.rb in async-1.29.0 vs lib/async/task.rb in async-1.29.1

- old
+ new

@@ -154,11 +154,10 @@ # Deprecated. alias result wait # Soon to become attr :result # Stop the task and all of its children. - # @return [void] def stop(later = false) if self.stopped? # If we already stopped this task... don't try to stop it again: return end @@ -248,12 +247,10 @@ def stop! # logger.debug(self) {"Task was stopped with #{@children&.size.inspect} children!"} @status = :stopped - @children&.each do |child| - child.stop(true) - end + stop_children(true) end def make_fiber(&block) Fiber.new do |*arguments| set!