class_docstr: Pages which long-poll for updates come here to wait.
  
  Updates detected on the filesystem come here to be shared.
class_docstr_tok: ["Pages","which","long-poll","for","updates","come","here","to","wait",".","Updates","detected","on","the","filesystem","come","here","to","be","shared","."]
docstr: Return True if the client should reload the page.
docstr_tok: ["Return","True","if","the","client","should","reload","the","page","."]
code: def wait(self, path, x_rebuild_time):
      """
      Return True if the client should reload the page.
      """
      with self.cond:
  
          def out_of_date():
              if not self.should_continue:
                  # Never wait after quit().
                  return True
              return (
                  self.rebuilds.get(path, x_rebuild_time)
                  != x_rebuild_time
              )
  
          if not self.cond.wait_for(out_of_date, timeout=60):
              # Timeout.
              return False
  
          # Out-of-date.
          return True
  
imports: import http.server
  import os
  import subprocess
  import sys
  import threading
  import time
  import watchdog
  import watchdog.events
  import watchdog.observers
label_desc: Use image node_id 2 for calling the LongPoller obj's underlying member method code with example usage: obj.wait(path, x_rebuild_time) and returns: True, unknown, False, True