source: trip-planner-front/node_modules/rxjs/_esm2015/internal/observable/throwError.js@ 6a3a178

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

initial commit

  • Property mode set to 100644
File size: 421 bytes
Line 
1import { Observable } from '../Observable';
2export function throwError(error, scheduler) {
3 if (!scheduler) {
4 return new Observable(subscriber => subscriber.error(error));
5 }
6 else {
7 return new Observable(subscriber => scheduler.schedule(dispatch, 0, { error, subscriber }));
8 }
9}
10function dispatch({ error, subscriber }) {
11 subscriber.error(error);
12}
13//# sourceMappingURL=throwError.js.map
Note: See TracBrowser for help on using the repository browser.