Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

refactor: remove async library #193

Closed
jimmywarting opened this issue May 31, 2016 · 6 comments
Closed

refactor: remove async library #193

jimmywarting opened this issue May 31, 2016 · 6 comments

Comments

@jimmywarting
Copy link

jimmywarting commented May 31, 2016

I only see one place where async is being used that it feels idiotic to include a such large lib just for that, it also adds a dependency of other...

I would suggest implementing that small pice of code yourself preferable by using Array.prototype@@iterator()

@bebraw
Copy link
Contributor

bebraw commented Jan 28, 2017

Hi,

We can accept a PR for this. Either a lighter dep or what you described would work.

@insin
Copy link
Contributor

insin commented Jan 28, 2017

Does async.forEach() run in parallel?

I usually reach for one of the versions someone has extracted if I need those, e.g. https://github.com/feross/run-parallel

@bebraw
Copy link
Contributor

bebraw commented Jan 28, 2017

If I'm reading right, that could be written as a regular forEach. There's nothing async going on.

@insin
Copy link
Contributor

insin commented Jan 28, 2017

I was assuming compilation.rebuildModule(module, function(err) { is async due to the errback.

@bebraw
Copy link
Contributor

bebraw commented Jan 28, 2017

Ah, yeah. I missed that. Good point.

@bebraw
Copy link
Contributor

bebraw commented Jan 28, 2017

That errback handling is a little weird, though, as it doesn't pass err further to terminate. It does just compilation.errors.push(err);.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants