source: trip-planner-front/node_modules/rxjs/_esm2015/internal/util/subscribeToPromise.js@ 571e0df

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

initial commit

  • Property mode set to 100644
File size: 412 bytes
Line 
1import { hostReportError } from './hostReportError';
2export const subscribeToPromise = (promise) => (subscriber) => {
3 promise.then((value) => {
4 if (!subscriber.closed) {
5 subscriber.next(value);
6 subscriber.complete();
7 }
8 }, (err) => subscriber.error(err))
9 .then(null, hostReportError);
10 return subscriber;
11};
12//# sourceMappingURL=subscribeToPromise.js.map
Note: See TracBrowser for help on using the repository browser.