Skip to content

Have you ever faced crashes while sending nested actions synchronously? #449

Closed Answered by mluisbrown
maximkrouk asked this question in Q&A
Discussion options

You must be logged in to vote

I was discussing this with a colleague of mine (@p4checo) the other day and he experimented doing the same thing using Combine and it apparently does not crash. So somehow Combine allows changing the value of a CurrentValueSubject without locking 🤯

I looked at the implementation of CurrentValueSubject in OpenCombine and it also uses an UnfairLock just like ReactiveSwift, so I'm not quite sure how Combine manages this without locks.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mluisbrown
Comment options

@maximkrouk
Comment options

@mluisbrown
Comment options

Answer selected by maximkrouk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants