cbs-web-antivirus-scanner/venv/lib/python3.12/site-packages/engineio/async_drivers/threading.py

20 lines
463 B
Python
Raw Normal View History

2024-11-19 14:19:23 -06:00
import queue
import threading
import time
from engineio.async_drivers._websocket_wsgi import SimpleWebSocketWSGI
class DaemonThread(threading.Thread): # pragma: no cover
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs, daemon=True)
_async = {
'thread': DaemonThread,
'queue': queue.Queue,
'queue_empty': queue.Empty,
'event': threading.Event,
'websocket': SimpleWebSocketWSGI,
'sleep': time.sleep,
}