source: trip-planner-front/node_modules/rxjs/_esm2015/internal/observable/empty.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: 375 bytes
Line 
1import { Observable } from '../Observable';
2export const EMPTY = new Observable(subscriber => subscriber.complete());
3export function empty(scheduler) {
4 return scheduler ? emptyScheduled(scheduler) : EMPTY;
5}
6function emptyScheduled(scheduler) {
7 return new Observable(subscriber => scheduler.schedule(() => subscriber.complete()));
8}
9//# sourceMappingURL=empty.js.map
Note: See TracBrowser for help on using the repository browser.