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

Method async_view_func

dash/backends/_quart.py:423–430  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

421 if inspect.iscoroutinefunction(handler):
422
423 async def async_view_func(*args, **kwargs):
424 if request is None:
425 raise RuntimeError(
426 "Quart not installed; request unavailable"
427 )
428 data = await request.get_json()
429 result = await handler(**data) if data else await handler()
430 return jsonify(result) # type: ignore[arg-type]
431
432 return async_view_func
433

Callers

nothing calls this directly

Calls 2

handlerFunction · 0.85
get_jsonMethod · 0.45

Tested by

no test coverage detected