예제 #1
0
파일: watchman.py 프로젝트: bricef/Watchman
 def clearqueue():
   while not eventq.empty():
     try:
       EchoConnection.dispatch_all(eventq.get(False))
     except Queue.Empty:
       pass
   tornado.ioloop.IOLoop.instance().add_callback(clearqueue)
예제 #2
0
파일: watchman.py 프로젝트: bricef/Watchman
 def tick():
   EchoConnection.dispatch_all(json.dumps({'time':time.time()}))