Have you ever faced crashes while sending nested actions synchronously? #449
-
|
I use https://github.com/trading-point/reactiveswift-composable-architecture with UIKit and I had to wrap a lot of For now I'm waiting for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
I was discussing this with a colleague of mine (@p4checo) the other day and he experimented doing the same thing using I looked at the implementation of |
Beta Was this translation helpful? Give feedback.
I was discussing this with a colleague of mine (@p4checo) the other day and he experimented doing the same thing using
Combineand it apparently does not crash. So somehow Combine allows changing thevalueof aCurrentValueSubjectwithout locking 🤯I looked at the implementation of
CurrentValueSubjectin OpenCombine and it also uses anUnfairLockjust likeReactiveSwift, so I'm not quite sure howCombinemanages this without locks.