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

Method _start_main_task

pywebio/session/coroutinebased.py:100–104  ·  view source on GitHub ↗
(self, target)

Source from the content-addressed store, hash-verified

98 self._step_task(main_task)
99
100 async def _start_main_task(self, target):
101 await target()
102 if self.need_keep_alive():
103 from ..session import hold
104 await hold()
105
106 def _step_task(self, task, result=None):
107 asyncio.get_event_loop().call_soon_threadsafe(partial(task.step, result))

Callers 1

__init__Method · 0.95

Calls 3

need_keep_aliveMethod · 0.95
holdFunction · 0.85
targetFunction · 0.50

Tested by

no test coverage detected