linwenling
2023-08-01 07613b212320d088235217f1c994c747295df315
1
2
3
4
5
6
7
8
9
10
11
12
import { hostReportError } from './hostReportError';
export const subscribeToPromise = (promise) => (subscriber) => {
    promise.then((value) => {
        if (!subscriber.closed) {
            subscriber.next(value);
            subscriber.complete();
        }
    }, (err) => subscriber.error(err))
        .then(null, hostReportError);
    return subscriber;
};
//# sourceMappingURL=subscribeToPromise.js.map