Skip to content

Commit cc9ef14

Browse files
authored
Update README.md
1 parent 9df9c7c commit cc9ef14

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
2. [🌈 Enter `Receiver`! 🌈](https://github.com/RuiAAPeres/Receiver#-enter-receiver-)
1313
3. [Adding as a Dependency 🚀](https://github.com/RuiAAPeres/Receiver#adding-as-a-dependency-)
1414
4. [Basic usage 😎](https://github.com/RuiAAPeres/Receiver#basic-usage-)
15-
5. [Strategies](https://github.com/RuiAAPeres/Receiver#strategies)
16-
6. [Opinionated, in what way? 🤓](https://github.com/RuiAAPeres/Receiver#opinionated-in-what-way-)
17-
7. [Ok, so why would I use this? 🤷‍♀️](https://github.com/RuiAAPeres/Receiver#ok-so-why-would-i-use-this-️)
15+
5. [Operators 🤖](https://github.com/RuiAAPeres/Receiver#operators-)
16+
6. [Strategies](https://github.com/RuiAAPeres/Receiver#strategies)
17+
7. [Opinionated, in what way? 🤓](https://github.com/RuiAAPeres/Receiver#opinionated-in-what-way-)
18+
8. [Ok, so why would I use this? 🤷‍♀️](https://github.com/RuiAAPeres/Receiver#ok-so-why-would-i-use-this-️)
1819

1920

2021
## Intro
@@ -92,6 +93,17 @@ This is how you send events:
9293
transmitter.broadcast(1)
9394
```
9495

96+
## Operators 🤖
97+
98+
Receiver provides a set of operators akin to ReactiveSwift:
99+
100+
* `map`
101+
* `filter`
102+
* `withPrevious`
103+
* `skip`
104+
* `take`
105+
* `skipRepeats`
106+
95107
## Strategies
96108

97109
If you are familiar with FRP, you must have heard about [cold and hot semantics](http://codeplease.io/2017/10/15/ras-s1e3-3/) (if not don't worry! ☺️). `Receiver` provides all three flavours explicitly, when you initialize it, via `make(strategy:)`. By default, the `Receiver` is `.hot`.

0 commit comments

Comments
 (0)