lib/async/tools.rb in async-tools-0.2.9 vs lib/async/tools.rb in async-tools-0.2.10
- old
+ new
@@ -11,12 +11,10 @@
loader = Zeitwerk::Loader.new
loader.tag = File.basename(__FILE__, ".rb")
loader.inflector = Zeitwerk::GemInflector.new(__FILE__)
loader.push_dir(File.expand_path("..", __dir__.to_s))
-loader.setup
-
module Async
# Your code goes here...
module Tools # rubocop:disable Style/ClassAndModuleChildren
class Error < StandardError
end
@@ -28,5 +26,8 @@
s.async { yield(item) }
end.map(&:wait)
end
end
end
+
+loader.setup
+loader.eager_load