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","."]
code: def update(self, path):
      try:
          stat = os.stat(path)
      except Exception as e:
          print(f"{path}: {e}")
          return
      with self.cond:
          self.rebuilds[path] = str(stat.st_mtime)
          # Alert the long-waiters.
          self.cond.notify_all()
  
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 4 for calling the LongPoller obj's underlying member method code with example usage: obj.update(path) without return types