Return result directly from findPath with enableSync()#54
Return result directly from findPath with enableSync()#54PSeitz wants to merge 4 commits intoprettymuchbryce:masterfrom
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.