This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@weakify(self); | |
RACSignal *timerSignal = [RACSignal | |
interval:10 onScheduler:[RACScheduler mainThreadScheduler]]; | |
self.somethingSignal = [timerSignal | |
map:^id(id value) { | |
@strongify(self); | |
return self.something; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Location Service | |
- (RACSignal *)locationSignal { | |
// NOTE: Location service is a singleton thus no strongify/weakify | |
// TODO: Review previous service code to add checks on last object to ensure that it's up-to-date and of the correct accuracy. | |
// TODO: Review how to restart the timer. I'm currently using take: 1 so it's not needed immediately. | |
RACSignal *locationSignal = [[RACSignal |
NewerOlder