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

Function run_as_function

pywebio/utils.py:292–300  ·  view source on GitHub ↗
(gen)

Source from the content-addressed store, hash-verified

290
291
292def run_as_function(gen):
293 res = None
294 while 1:
295 try:
296 res = gen.send(res)
297 except StopIteration as e:
298 if len(e.args) == 1:
299 return e.args[0]
300 return
301
302
303async def to_coroutine(gen):

Callers 15

thread_targetFunction · 0.90
targetFunction · 0.90
targetFunction · 0.90
targetFunction · 0.90
targetFunction · 0.90
targetFunction · 0.90
targetFunction · 0.90
targetFunction · 0.90
targetFunction · 0.90
targetFunction · 0.90
targetFunction · 0.90
targetFunction · 0.90

Calls 1

sendMethod · 0.80

Tested by 1

thread_targetFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…