We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2a8c28 commit df843d0Copy full SHA for df843d0
shiny/render/_render.py
@@ -248,8 +248,9 @@ def __init__(
248
name=render_fn.__name__,
249
)
250
251
- # Given we use `_utils.run_coro_sync(self._run())` to call our method,
252
- # we can act as if `render_fn` and `handler_fn` are always async
+ # `render_fn` is not required to be async. For consistency, we wrapped in an
+ # async function so that when it's passed in to `handler_fn`, `render_fn` is
253
+ # **always** an async function.
254
self._render_fn = _utils.wrap_async(render_fn)
255
self._handler_fn = handler_fn
256
self._params = params
0 commit comments