Stream.apex

  • Docs
  • Tutorials
Docs Menu
  • Streams
  • Methods
    • Creation Methods
    • Functions
    • Subscription Methods
    • Operation Methods
  • Subject

Subscription Methods Guide

Subscription Methods

subscribe

Subscribe an observer to the stream If the stream is cold, it will emit all the events to this observer If the stream is hot, it will emit events only when they come, to this observer and previous observers

Stream.of('abc')
     .subscribe(new Stream.FuncObserver(R.debug));
// abc
MethodDescription
subscribe(Observer)Subscribe an observer
subscribe(Func, Func, Func)Subscribe with onNext, onError and onComplete
subscribe(Func, Func)Subscribe with onNext, onError
subscribe(Func)Subscribe with onNext

Contribute on Github! Edit this section.