How to execute asynchronous post-processing in CherryPy?

前端 未结 3 1845
你的背包
你的背包 2021-02-09 23:48

Context: Imagine that you have a standard CherryPy hello word app:

   def index(self):
      return \"Hello world!\"
   index.exposed = True
         


        
3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-09 23:59

    The "global threading aware queue" is called Queue.Queue. I just added a recipe for this at http://tools.cherrypy.org/wiki/BackgroundTaskQueue

提交回复
热议问题