2022-01-21 08:28:41 +00:00
|
|
|
import { Observable } from '../Observable';
|
2022-06-08 10:36:39 +00:00
|
|
|
export var EMPTY = new Observable(function (subscriber) { return subscriber.complete(); });
|
2022-01-21 08:28:41 +00:00
|
|
|
export function empty(scheduler) {
|
|
|
|
return scheduler ? emptyScheduled(scheduler) : EMPTY;
|
|
|
|
}
|
|
|
|
function emptyScheduled(scheduler) {
|
|
|
|
return new Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); });
|
|
|
|
}
|
2022-06-08 10:36:39 +00:00
|
|
|
//# sourceMappingURL=empty.js.map
|