File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
from typing import Callable , Dict , Optional , List
3
3
4
4
from shiny import get_current_session
5
- from shiny ._utils import run_coro_sync
5
+ from shiny ._utils import run_coro_hybrid
6
6
7
7
from ._serialization import json_packer
8
8
@@ -166,7 +166,7 @@ def _publish_msg(
166
166
# In theory, it seems that this send could maybe be async (that we then asyncio.create_task() with),
167
167
# but that might mean that messages are sent out of order, which is not what we want.
168
168
def _send ():
169
- run_coro_sync (session .send_custom_message (msg_type , msg_txt )) # type: ignore
169
+ run_coro_hybrid (session .send_custom_message (msg_type , msg_txt )) # type: ignore
170
170
171
171
# N.B., if we don't do this on flush, then if you initialize a widget
172
172
# outside of a reactive context, run_coro_sync() will complain with
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ setup_requires =
33
33
install_requires =
34
34
ipywidgets>=7.6.5
35
35
jupyter_core
36
- shiny>=0.2.0.9006
36
+ shiny>=0.2.0.9007
37
37
python-dateutil>=2.8.2
38
38
tests_require =
39
39
pytest>=3
You can’t perform that action at this time.
0 commit comments