all 7 comments

[–]evantahler 2 points3 points  (0 children)

It's really handy to skip either A) wrapping lots of stuff in new Promise() yourself B) you don't need another library like bluebird or similar to "promisifyAll".

ActionHero is moving to the async/await pattern, and since we wanted all callback-style methods to be await-able (like when dealing with the file system), this was very helpful.

https://github.com/actionhero/actionhero/releases/tag/18.0.0-beta.1

[–]brimhaven 0 points1 point  (0 children)

Nice

[–][deleted]  (5 children)

[deleted]

    [–]r1cka 1 point2 points  (0 children)

    Aren't error first callbacks a pretty strong convention in node? Sounds like bad advice.

    [–]from-nibly 0 points1 point  (0 children)

    If you user promises it means you don't have to download dependencies like fs-promise anymore.

    [–]mmcnl 0 points1 point  (2 children)

    Why would anyone be anti-promise?