source: trip-planner-front/node_modules/rxjs/src/internal/Observer.ts

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: 410 bytes
Line 
1import { Observer } from './types';
2import { config } from './config';
3import { hostReportError } from './util/hostReportError';
4
5export const empty: Observer<any> = {
6 closed: true,
7 next(value: any): void { /* noop */},
8 error(err: any): void {
9 if (config.useDeprecatedSynchronousErrorHandling) {
10 throw err;
11 } else {
12 hostReportError(err);
13 }
14 },
15 complete(): void { /*noop*/ }
16};
Note: See TracBrowser for help on using the repository browser.