Process MongoDB query cursor results in parallel with a configurable concurrency limit, without loading all results into memory. Current stable version is 1.1.0 (supports both MongoDB 2 and 3). Released on GitHub, updated as needed (last change added support for cursor `next` method alongside `nextObject`). Unlike async.eachLimit, this package streams results from a cursor rather than requiring an in-memory array. Works with any object that has a `nextObject` method.
npm install broadbandNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage with MongoDB cursor: parallel processing limit of 8, error handling, and cleanup.
Ensure your cursor provides either `nextObject` or `next` method. broadband checks for both.
None required unless you have a direct lodash dependency; simply update broadband.
Handle errors in the final callback; do not assume all callbacks completed successfully.
Upgrade to broadband 1.1.0 or later, which supports cursor `next` method.
Wrap broadband call in a Promise manually or use util.promisify.
Update broadband to >=1.1.0 which also checks for cursor.next.
Use const broadband = require('broadband');Ensure the cursor is valid and has results; check for null cursor.