Discussion

Ask HN: Why don't languages that support Promises include timeouts?

I've been programming with promises for several years now, and I find myself using a common pattern of adding a race timeout promise. It seems like a useful feature, why isn't it implicit when dealing with deferred execution? I run into very few cases where an infinite timeout period makes sense.
8 points 0x0aff374668 7 years ago 4 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton