MCPcopy Index your code
hub / github.com/plotly/dash / _async_view_func

Method _async_view_func

dash/backends/_flask.py:333–336  ·  view source on GitHub ↗
(*args, handler=handler, **kwargs)

Source from the content-addressed store, hash-verified

331 if inspect.iscoroutinefunction(handler):
332
333 async def _async_view_func(*args, handler=handler, **kwargs):
334 data = request.get_json()
335 result = await handler(**data) if data else await handler()
336 return jsonify(result)
337
338 view_func = _async_view_func
339 else:

Callers

nothing calls this directly

Calls 2

handlerFunction · 0.85
get_jsonMethod · 0.45

Tested by

no test coverage detected