Method: Ears.run!
- Defined in:
- lib/ears.rb
.run! ⇒ Object
Blocks the calling thread until +SIGTERM+ or +SIGINT+ is received. Used to keep the process alive while processing messages.
59 60 61 62 63 64 |
# File 'lib/ears.rb', line 59 def run! @running = true setup_traps sleep 1 while @running && @error.nil? raise @error if @error end |