Receiver
Receiver copied to clipboard
Swift µframework implementing the Observer pattern 📡
Previous strategy was failing with newer swift versions, this is the same issue as #11. **[Edit]** ~~It seems that `Dictionary.keys` is somehow not atomic.~~ This is not true, see below...
Add a function of type: ```swift func combine(_ ra: Receiver, _ rb: Receiver) -> Receiver ``` Discussion points: - Whether it is necessary 😊 - should it be a free...
Hey, I discovered an issue (probably due to iOS 12/Swift 4.2/Xcode 10) that breaks the ability to have multiple listeners. Basically, only the first listener seems to receive the broadcasts....
In this situation: ```swift receiver.listen { _ in receiver.listen { _ in print("foo bar") } } ``` `Receiver` will deadlock, if I am not mistaken because of `os_unfair_lock_t`. Any hints/suggestions...