callbag-from
Convert a Promise, Event, Observable, or Iterable to a callbag listenable source. This simply wraps existing conversion utilities and autodetects which one to use.
npm install callbag-from
examples
Convert an Event (https://github.com/staltz/callbag-from-event)
const from = ;const observe = ; const source = ;
Convert a Promise (https://github.com/staltz/callbag-from-promise)
const from = ;const observe = ; const source = ; source; // Leanne Graham
Convert an Observable (https://github.com/staltz/callbag-from-obs)
const Rx = ;const from = ;const observe = ; const source = ;
Convert an Iterable (https://github.com/staltz/callbag-from-iter)
const from = ;const iterate = ; const source = ;