Top Level Namespace

Defined Under Namespace

Modules: Iodine

Instance Method Summary collapse

Instance Method Details

#after_fork(*args, &block) ⇒ Object

Performs a block of code whenever a new worker process spins up (performed once per worker).



124
125
126
# File 'lib/iodine.rb', line 124

def after_fork(*args, &block)
  Iodine.after_fork(*args, &block)
end

#after_fork_in_master(*args, &block) ⇒ Object

Performs a block of code whenever a new worker process spins up (performed once per worker).



136
137
138
# File 'lib/iodine.rb', line 136

def after_fork_in_master(*args, &block)
  Iodine.after_fork_in_master(*args, &block)
end

#after_fork_in_worker(*args, &block) ⇒ Object

Performs a block of code whenever a new worker process spins up (performed once per worker).



130
131
132
# File 'lib/iodine.rb', line 130

def after_fork_in_worker(*args, &block)
  Iodine.after_fork_in_worker(*args, &block)
end

#before_fork(*args, &block) ⇒ Object

Performs a block of code just before a new worker process spins up (performed once per worker, in the master thread).



148
149
150
# File 'lib/iodine.rb', line 148

def before_fork(*args, &block)
  Iodine.before_fork(*args, &block)
end

#on_worker_boot(*args, &block) ⇒ Object

Performs a block of code whenever a new worker process spins up (performed once per worker).



142
143
144
# File 'lib/iodine.rb', line 142

def on_worker_boot(*args, &block)
  Iodine.after_fork(*args, &block)
end