source: trip-planner-front/node_modules/rxjs/_esm5/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: 523 bytes
Line 
1/** PURE_IMPORTS_START _Observable,_util_subscribeToPromise,_scheduled_schedulePromise PURE_IMPORTS_END */
2import { Observable } from '../Observable';
3import { subscribeToPromise } from '../util/subscribeToPromise';
4import { schedulePromise } from '../scheduled/schedulePromise';
5export function fromPromise(input, scheduler) {
6 if (!scheduler) {
7 return new Observable(subscribeToPromise(input));
8 }
9 else {
10 return schedulePromise(input, scheduler);
11 }
12}
13//# sourceMappingURL=fromPromise.js.map
Note: See TracBrowser for help on using the repository browser.