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

Function to_coroutine

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

Source from the content-addressed store, hash-verified

301
302
303async def to_coroutine(gen):
304 res = None
305 while 1:
306 try:
307 c = gen.send(res)
308 res = await c
309 except StopIteration as e:
310 if len(e.args) == 1:
311 return e.args[0]
312 return
313
314
315class LRUDict(OrderedDict):

Callers 11

coro_targetFunction · 0.90
targetFunction · 0.90
async_targetFunction · 0.90
targetFunction · 0.90
async_targetFunction · 0.90
async_targetFunction · 0.90
async_targetFunction · 0.90
async_targetFunction · 0.90
async_targetFunction · 0.90
corobasedFunction · 0.85
innerFunction · 0.85

Calls 1

sendMethod · 0.80

Tested by 1

coro_targetFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…