-
Notifications
You must be signed in to change notification settings - Fork 165
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
Return result directly from findPath with enableSync() #54
base: master
Are you sure you want to change the base?
Conversation
I appreciate the change, but I'm not sure I will merge this. I think I prefer the API to be consistent in both the sync and async cases even if it's a little less convenient. One option would be to follow the node standard modules convention in creating a |
From the API perspective sync calls usually return values, only async operations require functions callbacks, but I agree both mangled in this function is not great. A new function may be the best way. I would remove enableSync as configuration and just provide findPathSync since enableSync and a callback is confusing. |
I think it makes sense to add the |
@prettymuchbryce Firstly, thank you for creating this great library, really impressive work. I agree that the implementation of Is there any update on this PR? It'd be great to get this in |
@mikedevelops I understand your concerns. I think the proposal in this PR makes a lot of sense. If you are interested in contributing, I think this would be a good candidate for a first PR. This PR is nearly completed. In my mind I see only a few remaining tasks.
I'm happy to answer any questions in this thread. |
Okay sounds great @prettymuchbryce, I'll aim to get that done by the weekend 😄 |
@prettymuchbryce It seemed easier to create a separate PR for this, I've added It's open here (#62) and ready for review. |
No description provided.