lib/sidekiq/pool.rb in sidekiq-pool-1.7.0 vs lib/sidekiq/pool.rb in sidekiq-pool-1.7.1
- old
+ new
@@ -1,6 +1,16 @@
require 'sidekiq/pool/version'
module Sidekiq
module Pool
+ module_function
+
+ def after_fork(&block)
+ @after_fork_hooks ||= []
+ @after_fork_hooks << block
+ end
+
+ def after_fork_hooks
+ @after_fork_hooks
+ end
end
end