asyncqt/__init__.py
def asyncClose(fn):
    """Allow to run async code before application is closed."""
    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        f = asyncio.ensure_future(fn(*args, **kwargs))
        while not f.done():
            QApplication.instance().processEvents()

    return wrapper
def asyncClose(fn):
    """Allow to run async code before application is closed."""
    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        f = asyncio.ensure_future(fn(*args, **kwargs))
        while not f.done():
            QApplication.instance().processEvents()

    return wrapper
Allow to run async code before application is closed.