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

Debug mode #39

Closed
theofidry opened this issue Feb 12, 2018 · 2 comments
Closed

Debug mode #39

theofidry opened this issue Feb 12, 2018 · 2 comments

Comments

@theofidry
Copy link

Moving my question from box-project/box#53 (comment) to here.

I think it would be good if it would be possible to easily switch from parallelMap() to a plain old array_map(), be it for debugging purposes or simply because in a special case parallelMap() is not working e.g. when the passed argument is not serializable.

Maybe an env variable would work, the inconvenient being it's gonna rely on global state, the benefit is would be easier and won't require much changes.

On the same token, the major downside I have with this library is the inability to use break points for the paralellised work. Would make it work?

If you have some insight regarding this that would be greatly appreciated, otherwise I'll try to give it a stab in the coming months :)

@rybakit
Copy link
Contributor

rybakit commented Feb 12, 2018

There is no parallelMap() in this repo. I think you mixed it with https://github.com/amphp/parallel-functions.

@theofidry
Copy link
Author

theofidry commented Feb 12, 2018

damn, seems like it. Re-opening there then :)

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

No branches or pull requests

2 participants