Tried the return Promise pattern and got me here: fs.open(path,'r') .then(fd => fs.write(data)) .then(written => fs.close(/* fd?*/))
-
-
@yoshuawuyts So then I'm forced back to nesting callbacks? Thought the return Promise pattern was _the_ way to get around that. -
@trevnorris lol no; unless you use bluebird with its 70 something built-ins this is what ends up happening - 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.