module Interactor::Async
Constants
- VERSION
Public Instance Methods
config()
click to toggle source
# File lib/interactor/async.rb, line 14 def config @config ||= default_config end
configure(&block)
click to toggle source
# File lib/interactor/async.rb, line 10 def configure &block instance_eval(&block) end
default_config()
click to toggle source
# File lib/interactor/async.rb, line 22 def default_config default_options = if defined?(ActiveJob::Base) {job_wrapper: ActiveJobDispatcher} else {job_wrapper: NullDispatcher} end OpenStruct.new(default_options) end
reset_config!()
click to toggle source
# File lib/interactor/async.rb, line 18 def reset_config! @config = default_config end