Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / _esm2015 / internal / observable / from.js
1 import { Observable } from '../Observable';
2 import { subscribeTo } from '../util/subscribeTo';
3 import { scheduled } from '../scheduled/scheduled';
4 export function from(input, scheduler) {
5     if (!scheduler) {
6         if (input instanceof Observable) {
7             return input;
8         }
9         return new Observable(subscribeTo(input));
10     }
11     else {
12         return scheduled(input, scheduler);
13     }
14 }
15 //# sourceMappingURL=from.js.map