Tried the return Promise pattern and got me here: fs.open(path,'r') .then(fd => fs.write(data)) .then(written => fs.close(/* fd?*/))
@trevnorris lol no; unless you use bluebird with its 70 something built-ins this is what ends up happening
-
-
@yoshuawuyts@trevnorris nope, just don't chain - assign each promise to a value. -
@isntitvacant@trevnorris example? - 1 more reply
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.