Open TheLudd opened 9 years ago
:+1:
Its because it spins up a instance of phantom
I stumbled upon this today as well, if i understand the code correctly returning the writable stream sync should not a problem https://github.com/brenden/node-webshot/blob/ce4b8630fc3ef0edf5078087e14b0a28a30ba0ab/lib/webshot.js#L245 should be
cb(null, s);
return s;
In the documentation, this is declared:
The stream instance is returned asynchronously. Why is this? Should the code not look like this?