Exploratory ReactiveCocoa signal operations. They've been used in an app, and do have tests, but judge for yourself.
-lab_replayLastWhen:
-lab_combineLatest
-lab_doFirst:
-lab_doLast:
-lab_willSubscribe:
-lab_didSubscribe:
Returns a signal that passes through all values, while also resending the last value on cue. Used to retrigger the last value on some event, such as the app returning to the foreground.
Similar to +combineLatest:
, except instead of combining the latest values
from a fixed collection of signals, this operation applies to a signal of
signals, combining the lastest values from each signal. For each signal sent,
the size of the "combination" increases by one. Unlike, +combineLatest:
, the
resulting signal sends values of NSArray
, not RACTuple
.
Similar to -initially:
and -finally:
, except the side effects represented by
these operators will only happen if the signal sends values.
Returns a signal that performs subscription side effects. While
-lab_willSubscribe:
is identical to -initially:
and exists just for symmetry,
-lab_didSubscribe:
allows a signal composition to include post-subscription
side effects.