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

Function _is_gevent_monkey_patched

core/utils.py:391–396  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

389
390
391def _is_gevent_monkey_patched():
392 try:
393 import gevent.monkey
394 return gevent.monkey.is_module_patched('threading')
395 except Exception:
396 return False
397
398
399def _is_celery_worker_context():

Callers 6

_poll_waitFunction · 0.90
epg_generatorFunction · 0.90
send_websocket_updateFunction · 0.85
spawn_memory_trimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected