This repository was archived by the owner on Oct 1, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +34
-2
lines changed
src/operator-docs/filtering Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Original file line number Diff line number Diff line change 11import { OperatorDoc } from '../operator.model' ;
22
33export const skipUntil : OperatorDoc = {
4- 'name' : 'skipUntil' ,
5- 'operatorType' : 'filtering'
4+ name : 'skipUntil' ,
5+ operatorType : 'filtering' ,
6+ signature : 'public skipUntil(notifier: Observable): Observable<T>' ,
7+ parameters : [
8+ {
9+ name : 'notifier' ,
10+ type : 'Observable' ,
11+ attribute : '' ,
12+ description : `The second Observable that has to emit an item before
13+ the source Observable's elements begin to be mirrored by the resulting Observable.`
14+ }
15+ ] ,
16+ marbleUrl : 'http://reactivex.io/rxjs/img/skipUntil.png' ,
17+ shortDescription : {
18+ description :
19+ 'Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.'
20+ } ,
21+ examples : [
22+ {
23+ name : 'Emits every 1s after 5 seconds' ,
24+ code : `
25+ //emit every 1s
26+ const source = Rx.Observable.interval(1000);
27+ //skip emitted values from source until inner observable emits (6s)
28+ const example = source.skipUntil(Rx.Observable.timer(6000));
29+ //output: 5...6...7...8........
30+ const subscribe = example.subscribe(val => console.log(val));
31+ ` ,
32+ externalLink : {
33+ platform : 'JSBin' ,
34+ url : 'http://jsbin.com/tapizososu/embed?js,console,output'
35+ }
36+ }
37+ ]
638} ;
You can’t perform that action at this time.
0 commit comments