MCPcopy Index your code
hub / github.com/nodejs/node / generate_async

Function generate_async

tools/inspector_protocol/jinja2/asyncsupport.py:31–40  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

29
30
31async def generate_async(self, *args, **kwargs):
32 vars = dict(*args, **kwargs)
33 try:
34 async for event in self.root_render_func(self.new_context(vars)):
35 yield event
36 except Exception:
37 exc_info = sys.exc_info()
38 else:
39 return
40 yield self.environment.handle_exception(exc_info, True)
41
42
43def wrap_generate_func(original_generate):

Callers

nothing calls this directly

Calls 3

exc_infoMethod · 0.80
new_contextMethod · 0.45
handle_exceptionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…