From e303077ebab73c41adee7d25375b767c3fc78998 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 19:59:55 +0000 Subject: [PATCH] fix(docs): add missing await to pagination example (#609) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d64feb9..c23d45d6 100644 --- a/README.md +++ b/README.md @@ -307,7 +307,7 @@ for (const betaMessageBatch of page.data) { // Convenience methods are provided for manually paginating: while (page.hasNextPage()) { - page = page.getNextPage(); + page = await page.getNextPage(); // ... } ```