To elaborate, take the fs module: I have functions like mkdir or unlink with their sycnhronous versions being mkdirSync and unlinkSync. I know that if I don't use the sync version I can handle errors on callbacks, but I can just as well use try/catch. What are the best practices here, if any?Thanks in advance!
Submitted October 09, 2017 at 04:14PM by PalomSage
No comments:
Post a Comment