wishthis/node_modules/rxjs/dist/cjs/internal/operators/publishLast.js

13 lines
537 B
JavaScript
Raw Normal View History

2022-04-07 07:06:43 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.publishLast = void 0;
var AsyncSubject_1 = require("../AsyncSubject");
var ConnectableObservable_1 = require("../observable/ConnectableObservable");
function publishLast() {
return function (source) {
var subject = new AsyncSubject_1.AsyncSubject();
return new ConnectableObservable_1.ConnectableObservable(source, function () { return subject; });
};
}
exports.publishLast = publishLast;
//# sourceMappingURL=publishLast.js.map