MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / _do

Function _do

core/utils.py:891–895  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

889def _send_async(channel_layer, group, message):
890 """Send a channel layer group message without blocking the gevent hub."""
891 def _do():
892 try:
893 async_to_sync(channel_layer.group_send)(group, message)
894 except Exception as e:
895 logger.warning(f"Failed WebSocket group_send to '{group}': {e}")
896
897 try:
898 import gevent.monkey

Callers 1

_send_asyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected