all files / app/services/ interval.ts

100% Statements 7/7
100% Branches 0/0
100% Functions 2/2
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 121× 1× 1×   1× 9×         1×  
import { share } from 'rxjs/operators/share';
import { interval } from 'rxjs/observable/interval';
import { startWith } from 'rxjs/operators/startWith';
 
export class IntervalService {
    interval10 = interval(10000)
        .pipe(
            share(), // make all subscriptions synchronous
            startWith(null),
        );
}