@@ -10,18 +10,33 @@ import Foundation
10
10
import RxSwift
11
11
12
12
/**
13
- Specifies how observable sequence will be repeated in case of an error
14
- - Immediate: Will be immediatelly repeated specified number of times
15
- - Delayed: Will be repeated after specified delay specified number of times
16
- - ExponentialDelayed: Will be repeated specified number of times.
17
- Delay will be incremented by multiplier after each iteration (multiplier = 0.5 means 50% increment)
18
- - CustomTimerDelayed: Will be repeated specified number of times. Delay will be calculated by custom closure
13
+ Specifies how observable sequence will be repeated in case of an error.
19
14
*/
20
-
21
15
public enum RepeatBehavior {
16
+
17
+ /**
18
+ Will be immediately repeated specified number of times.
19
+ - **maxCount:** Maximum number of times to repeat the sequence.
20
+ */
22
21
case immediate ( maxCount: UInt )
22
+
23
+ /**
24
+ Will be repeated after specified delay specified number of times.
25
+ - **maxCount:** Maximum number of times to repeat the sequence.
26
+ */
23
27
case delayed ( maxCount: UInt , time: Double )
28
+
29
+ /**
30
+ Will be repeated specified number of times.
31
+ Delay will be incremented by multiplier after each iteration (multiplier = 0.5 means 50% increment).
32
+ - **maxCount:** Maximum number of times to repeat the sequence.
33
+ */
24
34
case exponentialDelayed ( maxCount: UInt , initial: Double , multiplier: Double )
35
+
36
+ /**
37
+ Will be repeated specified number of times. Delay will be calculated by custom closure.
38
+ - **maxCount:** Maximum number of times to repeat the sequence.
39
+ */
25
40
case customTimerDelayed ( maxCount: UInt , delayCalculator: ( UInt ) -> DispatchTimeInterval )
26
41
}
27
42
0 commit comments