co-thunkify - async await thunkify for co
Turn a regular node function into one which returns a thunk, useful for generator-based flow control.
Installation
$ npm install co-thunkify
Examples
read file example
var thunkify = ;var fs = ; // read filevar readFile = ; { var str = buff; // str...};
sleep example
var thunkify = ; // sleepvar sleep = ; console; { console;};
sync and async example
License
MIT