We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
readFileThunk
1 parent 3b6848b commit c7f6437Copy full SHA for c7f6437
docs/async.md
@@ -439,12 +439,12 @@ while(!res.done){
439
```javascript
440
var fs = require('fs');
441
var thunkify = require('thunkify');
442
-var readFile = thunkify(fs.readFile);
+var readFileThunk = thunkify(fs.readFile);
443
444
var gen = function* (){
445
- var r1 = yield readFile('/etc/fstab');
+ var r1 = yield readFileThunk('/etc/fstab');
446
console.log(r1.toString());
447
- var r2 = yield readFile('/etc/shells');
+ var r2 = yield readFileThunk('/etc/shells');
448
console.log(r2.toString());
449
};
450
```
0 commit comments