Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
minitech
on June 1, 2017
|
parent
|
context
|
favorite
| on:
Node v8.0.0 Released
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; }); })
partycoder
on June 1, 2017
[–]
You want to use setImmediate rather than process.nextTick.
minitech
on June 2, 2017
|
parent
[–]
Mmm… no, I didn’t want to. Why do you say that?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: