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:
415 bytes
|
Line | |
---|
1 | import { Observable } from '../Observable';
|
---|
2 | import { subscribeToPromise } from '../util/subscribeToPromise';
|
---|
3 | import { schedulePromise } from '../scheduled/schedulePromise';
|
---|
4 | export function fromPromise(input, scheduler) {
|
---|
5 | if (!scheduler) {
|
---|
6 | return new Observable(subscribeToPromise(input));
|
---|
7 | }
|
---|
8 | else {
|
---|
9 | return schedulePromise(input, scheduler);
|
---|
10 | }
|
---|
11 | }
|
---|
12 | //# sourceMappingURL=fromPromise.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.