Sunday 12 March 2017

Wait for an async method to finish

i am writing a node js function which unzip a file and further read the unzipped files to process further. The problem is, before the file gets unzipped asynchronously, the read function gets started and it fails with file not found error. please suggest possible way to wait for unzip process before read file triggers.



via geekintown

No comments:

Post a Comment