rxjs - In what order is the observable code called? -
in following code, having hard time understanding order of chained calls are: function registerdomain(casewebsiteurl) { return this._adminservice.registerdomain(casewebsiteurl.url) .concatmap(registerid => observable.interval(5000) .mergemap(() => this._adminservice.getchange(registerid)) .takewhile((info) => info.changeinfo.status.value !== 'insync') ) } registerdomain.subscribe(res => console.log('res:'+res)); i trying understand above code, having hard time understanding order. easier me understand when see more simple example this: function registerdomain() { return register() .concatmap(registerid => rx.observable.interval(5000) .mergemap(() => getchange(registerid)) .takewhile((info) => info === 'pending') ); } registerdomain().subscribe(x=>console.log(x)); function register() { return rx.observable.of("registerid"); ...