You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
339 B
18 lines
339 B
5 years ago
|
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,
|
||
|
}
|