In contrast to the usual holding open of an ear, this is going to get something for an Observable once and then be done with it. It is like using an Observable as a promise. http://rxmarbles.com this has some details on the machinery of the various Observables keywords and it really shows off how simple .of is.
Addendum 12/5/2018: .of will actually take whatever is handed into it and then make an Observable out of it so that you may hand a promise to an Observable that will run once in this manner but otherwise what I suggest above is bad.
No comments:
Post a Comment