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

Method get_current_task_id

pywebio/session/threadbased.py:320–325  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

318
319 @classmethod
320 def get_current_task_id(cls):
321 task_id = super().get_current_task_id()
322 session = cls.get_current_session()
323 if task_id not in session.task_mqs:
324 session.register_thread(threading.current_thread())
325 return task_id
326
327 instance = None
328

Callers

nothing calls this directly

Calls 2

register_threadMethod · 0.80
get_current_sessionMethod · 0.45

Tested by

no test coverage detected