Method: Mongo::Server::Monitor#restart!
- Defined in:
- lib/mongo/server/monitor.rb
#restart! ⇒ Thread
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Restarts the server monitor unless the current thread is alive.
263 264 265 266 267 268 269 |
# File 'lib/mongo/server/monitor.rb', line 263 def restart! if @thread && @thread.alive? @thread else run! end end |