staltz / callbag-basics

👜 Tiny and fast reactive/iterable programming library
MIT License
1.65k stars 43 forks source link

Core Callbag Basics Feature: callbag-emitter #18

Closed simplygreatwork closed 6 years ago

simplygreatwork commented 6 years ago

callbag-basics ought to have a very simple technique to introduce/push values onto a stream. The ability to emit any value onto the stream manually is more important than fromEvent, fromPromise, fromIterator, and fromObservable. Consider that all of these "from" modules do not belong in callbag-basics. Consider that callbag-basics ought to have a single basic module for introducing values onto a stream.

staltz commented 6 years ago

Hi @simplygreatwork !

The ability to emit any value onto the stream manually is more important than fromEvent, fromPromise, fromIterator, and fromObservable.

I disagree, I think the opposite is more important. But it doesn't matter, we don't need to agree! Just npm install https://github.com/staltz/callbag-subject and now you have the emitter that you wanted :)

simplygreatwork commented 6 years ago

André, thank you for pointing me to callbag-subject. I always scour for libraries. Recently I've been scouring for a good stream library. I've evaluated highland, kefir, flyd, lazy. I stumbled upon xstream, then toy-rx, and finally callbag. Brilliant work, sir.