Compose generator and async/await middleware