frontend/.pnpm-store/v3/files/12/d9b08ff5cb0f6b3dd93f4db2c2f5be1a872ebe966fa3480c8f11cdc9ffe2b1022e68da617abe8d3e2d3c078d79345171e4bd4250d6ebdd2a96bb1f0ef9d664

16 lines
559 B
Plaintext

/** PURE_IMPORTS_START _hostReportError PURE_IMPORTS_END */
import { hostReportError } from './hostReportError';
export var subscribeToPromise = function (promise) {
return function (subscriber) {
promise.then(function (value) {
if (!subscriber.closed) {
subscriber.next(value);
subscriber.complete();
}
}, function (err) { return subscriber.error(err); })
.then(null, hostReportError);
return subscriber;
};
};
//# sourceMappingURL=subscribeToPromise.js.map