Class: BackgroundLite::ForkHandler
- Defined in:
- lib/background_lite/core_ext/handlers/fork_handler.rb
Overview
This background handler runs the given method in a forked child process.
Class Method Summary collapse
-
.handle(object, method, args, options = {}) ⇒ Object
Runs the method in a forked child process.
Class Method Details
.handle(object, method, args, options = {}) ⇒ Object
Runs the method in a forked child process
5 6 7 8 9 |
# File 'lib/background_lite/core_ext/handlers/fork_handler.rb', line 5 def self.handle(object, method, args, = {}) fork do object.send(method, *args) end end |