Attach asIterable() to a Paged result so it can be consumed with for await.
asIterable()
for await
Optional
const page = await client.listTokens({ limit: 50 });const it = attachIterable(page).asIterable();for await (const t of it) { console.log(t.symbol, t.address);} Copy
const page = await client.listTokens({ limit: 50 });const it = attachIterable(page).asIterable();for await (const t of it) { console.log(t.symbol, t.address);}
Attach
asIterable()to a Paged result so it can be consumed withfor await.