Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

each - setImmediate is not defined #4

Closed
WilliamHolmes opened this issue Sep 24, 2015 · 5 comments
Closed

each - setImmediate is not defined #4

WilliamHolmes opened this issue Sep 24, 2015 · 5 comments

Comments

@WilliamHolmes
Copy link

Chrome: Version 45.0.2454.99 m
each: 0.5.2

When I use it with the following (although not limited too) I get the error "setImmediate is not defined"...

each([1,2,3,4,5], function(element, index, next){ /* Do Something / }, function(err){ / Do Something */})

image

@wdavidw
Copy link
Member

wdavidw commented Sep 24, 2015

I have written/tested this module only with Node.js.

@WilliamHolmes
Copy link
Author

I going to close the issue, but it would be great if you would consider modifying this cool NPM to be used on the browser. Thanks.

@wdavidw
Copy link
Member

wdavidw commented Sep 25, 2015

I'm not against the idea but I really dont know how the best way to achieve it.

@Thammada
Copy link

Could you maybe mention some where that it is not intended to be used in the browser environment?

@wdavidw
Copy link
Member

wdavidw commented Dec 16, 2023

Please check v2.5.0. I haven't checked myself inside a browser environment yet (besides what I did before in the react-based environment) but I switched the usage of setImmediate with setTimeout when not available.

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

No branches or pull requests

3 participants