question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question - async.series / async.parallel - but no data accumulation

See original GitHub issue

Are there equivalents to async.series / async.parallel, but which do not accumulate data

e.g., we have

async.series([] | {}, function(err, results){});

I am looking for

async.seriesX([] | {}, function(err){});

I assume this might save a small amount of memory, by avoiding creating an object in the async library behind the scenes.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ex1stcommented, Apr 19, 2017
async.eachSeries(arr, (fn, cb) => { fn(cb); }, function(err){});
0reactions
ORESoftwarecommented, Apr 19, 2017

Ok let me give it a shot, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I return the accumulated results of multiple (parallel ...
It takes an array (or iterable) of promises, and returns a new promise which is resolved when all the promises of the array...
Read more >
async - Documentation - GitHub Pages
Returns a new array of all the values in coll which pass an async truth test. This operation is performed in parallel, but...
Read more >
Understanding Node.js Async Flows: Parallel, Serial, Waterfall ...
In case an error is passed to a function's callback, the main callback is immediately called with the error.
Read more >
Understanding Node.js Async Flows: Parallel, Serial ... - Velotio
It can be an array, an object or any iterable. Callback: This is the callback where all the task results are passed and...
Read more >
async function - JavaScript - MDN Web Docs - Mozilla
The async function declaration declares an async function where the await keyword is permitted within the function body. The async and await ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found