bazarr/libs/engineio/async_drivers/threading.py

18 lines
339 B
Python
Raw Normal View History

2020-01-30 01:07:26 +00:00
from __future__ import absolute_import
import threading
import time
try:
import queue
except ImportError: # pragma: no cover
import Queue as queue
_async = {
'thread': threading.Thread,
'queue': queue.Queue,
'queue_empty': queue.Empty,
'event': threading.Event,
'websocket': None,
'sleep': time.sleep,
}