MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / need_keep_alive

Method need_keep_alive

pywebio/session/threadbased.py:303–305  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

301 self.task_mqs[self._get_task_id(t)] = event_mq
302
303 def need_keep_alive(self) -> bool:
304 # if callback thread is activated, then the session need to keep alive
305 return self.callback_thread is not None
306
307
308class ScriptModeSession(ThreadBasedSession):

Callers 1

main_taskMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected