I transform any new value from signal with flattenMap, and I want to stop process based on some condition, not with error, but with completed state. Mentioned below code does not allow to do this. It just filters some value. How can I complete from flattenMap?
RACSignal* anySignal = //
[ [ anySignal
flattenMap: ^(id _)
{
return [ RACSignal empty ];
} ]
subscribeCompleted:
^{
NSLog(@"Not Called");
}];