def wait(timeout=None):
    request = Application.current_app.request
    top, request._unhandled = _WaitList(request._unhandled), []

    top.timeout = timeout
    return top
Wait for all asynchronous callbacks to return, and return a list of those
dataset/ETHPy150Open ecdavis/pants/pants/web/asynchronous.py/wait