def syncify(*types):
    "\n    Converts all the methods in the given types (class definitions)\n    into synchronous, which return either the coroutine or the result\n    based on whether ``asyncio's`` event loop is running.\n    "
    for t in types:
        for name in dir(t):
            if ((not name.startswith('_')) or (name == '__call__')):
                if inspect.iscoroutinefunction(getattr(t, name)):
                    _syncify_wrap(t, name)
Converts all the methods in the given types (class definitions)
into synchronous, which return either the coroutine or the result
based on whether ``asyncio's`` event loop is running.
def syncify(*types):
    "\n    Converts all the methods in the given types (class definitions)\n    into synchronous, which return either the coroutine or the result\n    based on whether ``asyncio's`` event loop is running.\n    "
    for t in types:
        for name in dir(t):
            if ((not name.startswith('_')) or (name == '__call__')):
                if inspect.iscoroutinefunction(getattr(t, name)):
                    _syncify_wrap(t, name)