Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
441 bytes
|
Line | |
---|
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 |
---|
Note:
See
TracBrowser
for help on using the repository browser.