Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

Commit 3777cb9

Browse files
Merge pull request #190 from ashwin-sureshkumar/issue-98
docs(operators): add documentation for skipUntil
2 parents 0412df5 + 6044850 commit 3777cb9

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed
Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,38 @@
11
import { OperatorDoc } from '../operator.model';
22

33
export 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
};

0 commit comments

Comments
 (0)