lib/airbrake/user_informer.rb
# wait till airbrake is done reporting ... stop when it fails to report
# TODO: use something nicer than sleep
wait till airbrake is done reporting ... stop when it fails to report
TODO: use something nicer than sleep
wait till airbrake is done reporting ... stop when it fails to report TODO : use something nicer than sleep
def wait_for_error(promise)
        return unless promise
        done = false
        error_id = nil
        promise.then { |notice| error_id = done = notice["id"] }
        promise.rescue { |_notice| done = true }
        STEPS.times do
          break if done
          sleep TIMEOUT / STEPS
        end
        error_id
      end
def wait_for_error ( promise ) return unless promise done = false error_id = nil promise . then { | notice | error_id = done = notice [ "id" ] } promise . rescue { | _notice | done = true } STEPS . times do break if done sleep TIMEOUT / STEPS end error_id end
wait till airbrake is done reporting ... stop when it fails to report
TODO: use something nicer than sleep
wait till airbrake is done reporting ... stop when it fails to report TODO : use something nicer than sleep
promise