Skip to content

Commit

Permalink
Refactored read me to the new RxSwift syntax
Browse files Browse the repository at this point in the history
Added instructions to fetch the lib from carthage
  • Loading branch information
bmoliveira committed Jan 17, 2019
1 parent 520f9ee commit 66735ab
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ NSTimer.rx_timer

## Any number of seconds
```swift
NSTimer.rx_timer(10)
NSTimer.rx.timer(10)
.subscribeNext { _ in
print("timer triggered")
}
Expand All @@ -26,7 +26,7 @@ NSTimer.rx_timer(10)
### Skip first event to ignore trigger upon subscribing

```swift
NSTimer.rx_timer(10)
NSTimer.rx.timer(10)
.skip(1)
.subscribeNext { _ in
print("timer triggered")
Expand All @@ -37,7 +37,7 @@ NSTimer.rx_timer(10)
### Take(n) to cancel the timer after n number of calls

```swift
NSTimer.rx_timer(10)
NSTimer.rx.timer(10)
.take(10)
.subscribeNext { _ in
print("timer triggered")
Expand All @@ -55,6 +55,12 @@ Installing
pod 'RxTimer'
```

### Carthage

Cartfile
```
github "bmoliveira/RxTimer" ~> 1.3
```
And that'll be 👌

License
Expand Down

0 comments on commit 66735ab

Please sign in to comment.