source: trip-planner-front/node_modules/rxjs/_esm5/internal/scheduled/scheduled.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: 1.2 KB
Line 
1/** PURE_IMPORTS_START _scheduleObservable,_schedulePromise,_scheduleArray,_scheduleIterable,_util_isInteropObservable,_util_isPromise,_util_isArrayLike,_util_isIterable PURE_IMPORTS_END */
2import { scheduleObservable } from './scheduleObservable';
3import { schedulePromise } from './schedulePromise';
4import { scheduleArray } from './scheduleArray';
5import { scheduleIterable } from './scheduleIterable';
6import { isInteropObservable } from '../util/isInteropObservable';
7import { isPromise } from '../util/isPromise';
8import { isArrayLike } from '../util/isArrayLike';
9import { isIterable } from '../util/isIterable';
10export function scheduled(input, scheduler) {
11 if (input != null) {
12 if (isInteropObservable(input)) {
13 return scheduleObservable(input, scheduler);
14 }
15 else if (isPromise(input)) {
16 return schedulePromise(input, scheduler);
17 }
18 else if (isArrayLike(input)) {
19 return scheduleArray(input, scheduler);
20 }
21 else if (isIterable(input) || typeof input === 'string') {
22 return scheduleIterable(input, scheduler);
23 }
24 }
25 throw new TypeError((input !== null && typeof input || input) + ' is not observable');
26}
27//# sourceMappingURL=scheduled.js.map
Note: See TracBrowser for help on using the repository browser.