Last change
on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
375 bytes
|
Line | |
---|
1 | import { Observable } from '../Observable';
|
---|
2 | export const EMPTY = new Observable(subscriber => subscriber.complete());
|
---|
3 | export function empty(scheduler) {
|
---|
4 | return scheduler ? emptyScheduled(scheduler) : EMPTY;
|
---|
5 | }
|
---|
6 | function emptyScheduled(scheduler) {
|
---|
7 | return new Observable(subscriber => scheduler.schedule(() => subscriber.complete()));
|
---|
8 | }
|
---|
9 | //# sourceMappingURL=empty.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.