News for hackers. Stuff that matters.
Re:Async/Await will make code simpler by tracker1 on Monday August 21, 2017 @04:54PM (#15067788)

    function getUserInfo(cb) {
      Promise.all([
        api.getUser(),
        api.getFriends(),
        api.getPhoto(),
      ]).then(
        ([user, friends, photo]) => 
          cb(null, {user, friends, photo}),
        cb,
      );
    }
Re:Async/Await will make code simpler by hitgeek on Monday August 21, 2017 @05:16PM (#15067921)
I do this with so many libraries now. especially in the react-native ecosystem.

I just prefer node style callbacks, so I wrap libraries with promise based APIs with callback based wrappers.

hopefully i'm not the only one.