Hacker News new | ask | show | jobs
by salibhai 4012 days ago
Futures sounds a lot like Promises to me. Or am I wrong?
3 comments

Yes, the two terms are unfortunately both synonymous (comparing different implementations of the pattern in different languages), and usually have specific meanings in the context of any given implementation. Often, as here, Promise is the write handle and Future is the read handle.
Senders hold promises, and receivers hold futures. A promise represents a "promise" to deliver a value at some point to the holder of the future.