cursor
import { Client } from "@upstash/qstash"; const client = new Client({ token: "<QSTASH_TOKEN>" }); const allEvents = []; let cursor = null; while (true) { const res = await client.events({ cursor }); allEvents.push(...res.events); cursor = res.cursor; if (!cursor) { break; } }
Was this page helpful?