Hacker News new | past | comments | ask | show | jobs | submit login

That’s not something that should be handled inside an async function (and therefore not in this example). If you don’t want to continue a promise chain, terminate it:

  .catch(error => {
    process.nextTick(() => { throw error; });
  })



You want to use setImmediate rather than process.nextTick.


Mmm… no, I didn’t want to. Why do you say that?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: