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

Class TaskHandler

pywebio/session/coroutinebased.py:249–265  ·  view source on GitHub ↗

The handler of coroutine task See also: `run_async() `

Source from the content-addressed store, hash-verified

247
248
249class TaskHandler:
250 """The handler of coroutine task
251
252 See also: `run_async() <pywebio.session.run_async>`
253 """
254
255 def __init__(self, close, closed):
256 self._close = close
257 self._closed = closed
258
259 def close(self):
260 """Close the coroutine task."""
261 return self._close()
262
263 def closed(self) -> bool:
264 """Returns a bool stating whether the coroutine task is closed. """
265 return self._closed()
266
267
268class Task:

Callers 1

task_handleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…