I have an array of signal producers that fetch similar objects from the backend like [SignalProducer<
Object, NSError>
].
How can I zip them to have array of their results [Object] every time they all are finished?
I know there zip operators with predefined number of producers, but it is not a case, as the number of requests to send is known only in runtime.
Asked
Active
Viewed 886 times
2

benchman
- 115
- 4
var producers: [SignalProducer
...
return SignalProducer.zip(producers)