kefirjs / kefir

A Reactive Programming library for JavaScript
https://kefirjs.github.io/kefir/
MIT License
1.87k stars 97 forks source link

Promises #10

Closed davidchase closed 9 years ago

davidchase commented 10 years ago

Any thoughts of creating a fromPromise to support event streams for promise objects?

rpominov commented 10 years ago

Kefir doesn't have Error type of events now, so it little tricky to add .fromPromise method.

I have two options now:

  1. add errors support to Kefir, then implement .fromPromise
  2. implement .fromPromise now so both success and failure of promise will be emitted as value in Kefir (maybe failure wrapped to new Error() or something)

If I do 2nd, I won't be able to do 1st later, when errors will be added. And to do 1st I need to add errors support, which I don't want to do yet.

davidchase commented 10 years ago

So right now you are just throwing errors when they occur and just have the browser display them?

rpominov commented 10 years ago

Which errors do you mean? I.e where are they come from?

davidchase commented 10 years ago

sorry i think i answered my own question, out of curiosity whats next up for development in this library?

rpominov commented 10 years ago

Next in the list are: