Method: Observability::Sender#stop
- Defined in:
- lib/observability/sender.rb
#stop ⇒ Object
Stop the sender’s executor.
76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/observability/sender.rb', line 76 def stop self.log.debug "Stopping the %p" % [ self.class ] return if !self.executor || self.executor.shuttingdown? || self.executor.shutdown? self.log.debug " shutting down the executor" self.executor.shutdown unless self.executor.wait_for_termination( 3 ) self.log.debug " killing the executor" self.executor.halt self.executor.wait_for_termination( 3 ) end end |