Skip to content

Commit 66735ab

Browse files
committed
Refactored read me to the new RxSwift syntax
Added instructions to fetch the lib from carthage
1 parent 520f9ee commit 66735ab

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ NSTimer.rx_timer
1616

1717
## Any number of seconds
1818
```swift
19-
NSTimer.rx_timer(10)
19+
NSTimer.rx.timer(10)
2020
.subscribeNext { _ in
2121
print("timer triggered")
2222
}
@@ -26,7 +26,7 @@ NSTimer.rx_timer(10)
2626
### Skip first event to ignore trigger upon subscribing
2727

2828
```swift
29-
NSTimer.rx_timer(10)
29+
NSTimer.rx.timer(10)
3030
.skip(1)
3131
.subscribeNext { _ in
3232
print("timer triggered")
@@ -37,7 +37,7 @@ NSTimer.rx_timer(10)
3737
### Take(n) to cancel the timer after n number of calls
3838

3939
```swift
40-
NSTimer.rx_timer(10)
40+
NSTimer.rx.timer(10)
4141
.take(10)
4242
.subscribeNext { _ in
4343
print("timer triggered")
@@ -55,6 +55,12 @@ Installing
5555
pod 'RxTimer'
5656
```
5757

58+
### Carthage
59+
60+
Cartfile
61+
```
62+
github "bmoliveira/RxTimer" ~> 1.3
63+
```
5864
And that'll be 👌
5965

6066
License

0 commit comments

Comments
 (0)