If my code looks like this:
....a bunch of code in an observable
this.samples.next(null);
...a bunch more code in the method
And this.samples resolves to a BehaviorSubject, does the application wait for all subscribers to be notified and finish their work or does execution continue immediately to the next lines in the current method?