tj/co-fs

Time to update for async supporting

Opened this issue · 2 comments

It's time to update all stuff. Does not work with async await.
No thunkify. There is a native Promise object!

Something like this
methods.forEach bla bla bla
exports[name]=(...n)=>{return new Promise((res,rej)=>{
fs[name](...n,(er,d)=>{
if(er)rej(er)
res(d)})})}

Time to update for async supporting