RxJS - Cold observable - Two Subscribers - Coding Blast - www.codingblast.com
import {Observable} from 'rxjs'; | |
let source = Observable | |
.interval(1000) | |
.take(6); | |
source.subscribe(x => console.log('sub 1: ', x)); | |
setTimeout(function () { | |
source.subscribe(x => console.log(' sub 2: ', x)); | |
}, 2700); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment