Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why does the promise returned by a promise’s then() method need to reference that promise?

The original promise needs to reference the chained promise, not the other way round.

As jobs complete I would expect the top of the chain to be eligible to be garbage collected.



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

Search: