Assertion: new promise | /r/HasProperty | function
Facets:
Source sentences:
text: function readFile (filename, enc) { return new Promise( function (fulfill, reject) { fs.readFile(filename, enc, function (err, res) { if (err) reject(err); else fulfill(res); }); }); }
text: function readJSON (filename) { return new Promise( function (fulfill, reject) { readFile(filename, 'utf8' ).done
text: var myPromise = new Promise( function (resolve,reject) { var x = MyDataStore(myObj); resolve(x); }); myPromise.then( function (x) { init(x); });