Reputation: 3181
Is it possible to identify state of a SignalProducer in ReactiveCocoa4?
If a SignalProducer has been created, but not necessarily started, is it possible to read a property or call a method to know if a signal has already been started, without actually starting the signal in the process.
Upvotes: 0
Views: 67
Reputation: 1743
SignalProducer
is a value type (a struct
). That means that it doesn't have just one owner like a class
would. When you start
a SignalProducer
you're start
ing one copy of it.
For that reason, it doesn't make sense to talk about whether a SignalProducer
has already been started or not, it's inert.
Upvotes: 2