Closed ashfurrow closed 10 years ago
Intuitive or not, I think it's semantically important that these signals fire immediately.
For example, if you have this expression:
[someLongRunningOperation takeUntil:self.didBecomeInactiveSignal]
You want that to cancel whenever the view model is inactive, regardless of whether it was already so when the signal was subscribed to.
:+1:
Discussing with @kylef, it's not intuitive that
didBecomeInactiveSignal
immediately sends a value ofNO
in most cases. Complicating matters is the fact thatdidBecomeInactiveSignal
and its correspondingdidBecomeActiveSignal
are lazily-loaded.I understand that the header includes the following comment:
However, to quote @joshaber, "If we're expecting people to read the docs, we're gonna have a bad time. :hurtrealbad:"
I would suggest we consider that when they are created, if the would immediately send a value due to the current state of
active
, then theyskip:1
. Thoughts?