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).



120
121
122
# File 'lib/iodine.rb', line 120

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).



132
133
134
# File 'lib/iodine.rb', line 132

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).



126
127
128
# File 'lib/iodine.rb', line 126

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).



144
145
146
# File 'lib/iodine.rb', line 144

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).



138
139
140
# File 'lib/iodine.rb', line 138

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