empty.js 596 B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.empty = exports.EMPTY = void 0;
  4. var Observable_1 = require("../Observable");
  5. exports.EMPTY = new Observable_1.Observable(function (subscriber) { return subscriber.complete(); });
  6. function empty(scheduler) {
  7. return scheduler ? emptyScheduled(scheduler) : exports.EMPTY;
  8. }
  9. exports.empty = empty;
  10. function emptyScheduled(scheduler) {
  11. return new Observable_1.Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); });
  12. }
  13. //# sourceMappingURL=empty.js.map