source: trip-planner-front/node_modules/rxjs/_esm5/internal/observable/from.js@ fa375fe

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

initial commit

  • Property mode set to 100644
File size: 536 bytes
Line 
1/** PURE_IMPORTS_START _Observable,_util_subscribeTo,_scheduled_scheduled PURE_IMPORTS_END */
2import { Observable } from '../Observable';
3import { subscribeTo } from '../util/subscribeTo';
4import { scheduled } from '../scheduled/scheduled';
5export function from(input, scheduler) {
6 if (!scheduler) {
7 if (input instanceof Observable) {
8 return input;
9 }
10 return new Observable(subscribeTo(input));
11 }
12 else {
13 return scheduled(input, scheduler);
14 }
15}
16//# sourceMappingURL=from.js.map
Note: See TracBrowser for help on using the repository browser.