node.js - request's pipe method, how to monitor the time required to read a file?
怪我咯2017-05-24 11:38:32
0
1
729
To read a picture from the Internet, I need to know the time required. For example, if it exceeds 3 seconds, I will give up reading the picture. How to do this?
You can use promises
Or use async package