Questions tagged [racsequence]

4 questions
1
vote
1 answer

Reactive ObjC emit sequence with time interval

I am trying to emit a sequence of numbers with a delay between each emission. I have a NSIndexSet with a series of numbers, [[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, 100)] Now I want to emit each number with a delay,Like emit number 2…
Easy Coder
  • 295
  • 1
  • 3
  • 14
1
vote
1 answer

Observe every item in a RACSequence, update observations when sequence has new items

This is a similar question to an earlier question that asked about observing every item in a RACSequence — the correct answer was something like: RACSignal *valid = [[RACSignal combineLatest: [self.viewModels map:^id(ViewModel…
Tony Arnold
  • 2,738
  • 1
  • 23
  • 34
0
votes
1 answer

how to get item from rac_sequence, reactive cocoa, ios

I am parsing the needed links which is in the header of the response from the server. My header looks like Access-Control-Allow-Origin → * Age → 0 Cache-Control → private,must-revalidate Connection → keep-alive Content-Encoding → gzip …
tonytran
  • 1,068
  • 2
  • 14
  • 24
0
votes
1 answer

ReactiveCocoa - How to get one item at a time from RACSequence?

I keep reading that RACSequences are "pull-driven". Can someone explain to me how to "pull" values out of a sequence on demand? Say I have an array that I have turned into a signal. Then say there is another signal and when a value is sent on it, I…
PICyourBrain
  • 9,976
  • 26
  • 91
  • 136