source$.switchMap(x => promise(x))
.subscribe(x => console.log(x));
source$.switchMap(x => from(promise(x)))
.subscribe(x => console.log(x));
both the lines of code resolves the promise but can someone really point out what's the different in between these two lines of code ?