Closed L8D closed 9 years ago
i.e. make them be:
function read(path) { return new Future(function(resolve, reject) { fs.readFile(path, function(err, data) { if (err) { reject(err); } else { resolve(data); } }); }); }
http://www.2ality.com/2014/10/es6-promises-api.html
Hmm, this would be a breaking change without much benefits. I think we're stuck with this order because legacy and history =/
But it's only at version 0.4! Oh wait... nvm.
i.e. make them be:
http://www.2ality.com/2014/10/es6-promises-api.html