rxjs convert observable to promise code example Example: rxjs promise to observable import { from } from 'rxjs'; const observable = from(promise);