source: trip-planner-front/node_modules/rxjs/_esm2015/internal/observable/fromPromise.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 415 bytes
Line 
1import { Observable } from '../Observable';
2import { subscribeToPromise } from '../util/subscribeToPromise';
3import { schedulePromise } from '../scheduled/schedulePromise';
4export function fromPromise(input, scheduler) {
5 if (!scheduler) {
6 return new Observable(subscribeToPromise(input));
7 }
8 else {
9 return schedulePromise(input, scheduler);
10 }
11}
12//# sourceMappingURL=fromPromise.js.map
Note: See TracBrowser for help on using the repository browser.