__author__ = "Daniel Greenfeld"
__email__ = "pydanny@gmail.com"
-__version__ = "1.4.2"
+__version__ = "1.5.2"
__license__ = "BSD"
+from functools import wraps
from time import time
import threading
try:
import asyncio
-except ImportError:
+except (ImportError, SyntaxError):
asyncio = None
return value
def _wrap_in_coroutine(self, obj):
-
+ @wraps(obj)
@asyncio.coroutine
def wrapper():
future = asyncio.ensure_future(self.func(obj))