Rx.Observable.fromPromise(promise)
Converts a Promises/A+ spec compliant Promise and/or ES2015 compliant Promise to an Observable sequence.
Arguments
promise
(Promise
): Promises/A+ spec compliant Promise to an Observable sequence.
Returns
(Observable
): An Observable sequence which wraps the existing promise success and failure.