The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Observables are almost like Functions

Observables are almost like Functions

6:43
This lesson introduces the concept of an Observable. We will see how similar it behaves to a function and what is the fundamental difference between them.
Watch this lesson now
Avatar
egghead.io

This lesson introduces the concept of an Observable. We will see how similar it behaves to a function and what is the fundamental difference between them.

Avatar
Arnold

How do you pass a value into a new Observable using Create. I see a lot of examples of .onNext(42), but how would this value be passed in?

Avatar
Steve Cordrey

Wow. Thanks for making the comparison between functions and observables so easy to understand.

Avatar
Patrick

Was there supposed to be further explanation regarding using the call() method? There wasn't much more said about it in this video or in the rest of the course.

Avatar
Andre

Hi Patrick. Towards the end of this video I pointed out a symmetry with functions and Observables, where .call and .subscribe are semantically equivalent. Both will invoke the lazy computation and produce value(s) that is(are) returned.

In reply to Patrick
Avatar
Stephen James

Andre thanks for all of these videos you make RxJs interesting and I really enjoy your style of building up the information from simpler concepts.

In reply to Andre
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?