Method: Async::Scheduler#terminate

Defined in:
lib/async/scheduler.rb

#terminateObject

Terminate all child tasks.



138
139
140
141
142
143
144
145
# File 'lib/async/scheduler.rb', line 138

def terminate
  # If that doesn't work, take more serious action:
  @children&.each do |child|
    child.terminate
  end
  
  return @children.nil?
end