empty.js 501 B

12345678910
  1. /** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */
  2. import { Observable } from '../Observable';
  3. export var EMPTY = /*@__PURE__*/ new Observable(function (subscriber) { return subscriber.complete(); });
  4. export function empty(scheduler) {
  5. return scheduler ? emptyScheduled(scheduler) : EMPTY;
  6. }
  7. function emptyScheduled(scheduler) {
  8. return new Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); });
  9. }
  10. //# sourceMappingURL=empty.js.map