Skip to content

Instantly share code, notes, and snippets.

@robpearson
Created April 16, 2014 21:47
Show Gist options
  • Select an option

  • Save robpearson/10936451 to your computer and use it in GitHub Desktop.

Select an option

Save robpearson/10936451 to your computer and use it in GitHub Desktop.
ReactiveCocoa interval (polling) signal
@weakify(self);
RACSignal *timerSignal = [RACSignal
interval:10 onScheduler:[RACScheduler mainThreadScheduler]];
self.somethingSignal = [timerSignal
map:^id(id value) {
@strongify(self);
return self.something;
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment