You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 20, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: doc/api/core/operators/retrywhen.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
### `Rx.Observable.prototype.retryWhen(notifier)`
2
2
[Ⓢ](https://github.com/Reactive-Extensions/RxJS/blob/master/src/core/linq/observable/retrywhen.js"View in source")
3
3
4
-
Repeats the source observable sequence on error when the notifier emits a next value. If the source observable errors and the notifier completes, it will complete the source sequence
4
+
Repeats the source observable sequence on error when the notifier emits a next value. If the source observable errors and the notifier completes, it will complete the source sequence.
5
5
6
6
#### Arguments
7
7
1.`notificationHandler`*(`Function`)*: A handler that is passed an observable sequence of errors raised by the source observable and returns
8
-
and observable that either continues, completes or errors. This behavior is then applied to the source observable.
8
+
an observable that either continues, completes or errors. This behavior is then applied to the source observable.
9
9
10
10
#### Returns
11
11
*(`Observable`)*: An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully or is notified to error or complete.
12
12
13
-
#### Example: delayed retry
13
+
#### Example: Delayed retry
14
14
```js
15
15
var source =Rx.Observable.interval(1000)
16
16
.map(function(n) {
@@ -117,7 +117,7 @@ var subscription = source.subscribe(
117
117
// => Completed
118
118
```
119
119
120
-
An incrememntal back-off strategy for handling errors:
120
+
#### Example: An incremental back-off strategy for handling errors
0 commit comments