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

Function render_async

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

Source from the content-addressed store, hash-verified

56
57
58async def render_async(self, *args, **kwargs):
59 if not self.environment.is_async:
60 raise RuntimeError('The environment was not created with async mode '
61 'enabled.')
62
63 vars = dict(*args, **kwargs)
64 ctx = self.new_context(vars)
65
66 try:
67 return await concat_async(self.root_render_func(ctx))
68 except Exception:
69 exc_info = sys.exc_info()
70 return self.environment.handle_exception(exc_info, True)
71
72
73def wrap_render_func(original_render):

Callers

nothing calls this directly

Calls 4

concat_asyncFunction · 0.85
exc_infoMethod · 0.80
new_contextMethod · 0.45
handle_exceptionMethod · 0.45

Tested by

no test coverage detected