Re:Cancelable Promises: Why was this proposal withdrawn?
by naasking on Monday December 19, 2016 @10:17AM
(#13211887)
From the FRP literature, an observable can be viewed as a stream of promises, something like:
So it's basically a linked list of the current value, and the next value which is a promise for the same type of structure.
[ Parent
| on HN ]
Re:Cancelable Promises: Why was this proposal withdrawn?
by bad_user on Monday December 19, 2016 @02:49PM
(#13214444)
An observable is definitely not a stream of promises, because an observable is push-based, while a stream of promises would be pull-based.
Big difference in performance, implementation and what operations are possible or not. Even if you add back-pressure in that protocol, it's still a big difference.
And yes, my point is that an observable is close to being a sort of superset of a promise, but not close enough.
Re:Cancelable Promises: Why was this proposal withdrawn?
by naasking on Monday December 19, 2016 @04:36PM
(#13215179)
> An observable is definitely not a stream of promises, because an observable is push-based, while a stream of promises would be pull-based.
Why would a stream of promises be pull-based? That seems like a pretty odd assumption to me.