def AsyncResponseMiddleware(environ, resp):
    '''This is just for testing the asynchronous response middleware
    '''
    future = create_future()
    future._loop.call_soon(future.set_result, resp)
    return future
def AsyncResponseMiddleware ( environ , resp ) : future = create_future ( ) future . _loop . call_soon ( future . set_result , resp ) return future
This is just for testing the asynchronous response middleware