Method: Chef::EventDispatch::Dispatcher#event_list

Defined in:
lib/chef/event_dispatch/dispatcher.rb

#event_listObject

Since the cookbook synchronizer will call this object from threads, we have to deal with concurrent access to this object. Since we don’t want threads to handle events from other threads, we just use thread local storage.



23
24
25
# File 'lib/chef/event_dispatch/dispatcher.rb', line 23

def event_list
  Thread.current[:chef_client_event_list] ||= []
end