lib/sensu/client/process.rb
def complete_checks_in_progress
        @logger.info("completing checks in progress", :checks_in_progress => @checks_in_progress)
        retry_until_true do
          if @checks_in_progress.empty?
            yield
            true
          end
        end
      end
# Call a callback (Ruby block) when there are no longer check
# executions in progress. This method is used when stopping the
# Sensu client. The `retry_until_true` helper method is used to
# check the condition every 0.5 seconds until `true` is
# returned.
#
# @yield [] callback/block called when there are no check
#   executions in progress.
Call a callback (Ruby block) when there are no longer check
executions in progress. This method is used when stopping the
Sensu client. The `retry_until_true` helper method is used to
check the condition every 0.5 seconds until `true` is
returned.
Call a callback ( Ruby block ) when there are no longer check executions in progress . This method is used when stopping the Sensu client . The ` retry_until_true ` helper method is used to check the condition every 0 . 5 seconds until ` true ` is returned .
def complete_checks_in_progress
        @logger.info("completing checks in progress", :checks_in_progress => @checks_in_progress)
        retry_until_true do
          if @checks_in_progress.empty?
            yield
            true
          end
        end
      end
def complete_checks_in_progress @logger . info ( "completing checks in progress" , :checks_in_progress => @checks_in_progress ) retry_until_true do if @checks_in_progress . empty? yield true end end end
Call a callback (Ruby block) when there are no longer check
executions in progress.
Call a callback ( Ruby block ) when there are no longer check executions in progress .
]
callback/block called when there are no check executions in progress.
callback / block called when there are no check executions in progress .