How can I subscribe to the completion of a command's execution signals without a nested subscription?
问题 I tried the following without success. The equivalent using -subscribeNext: works as expected. // A [[_viewModel.loginCommand.executionSignals flatten] subscribeCompleted:^{ NSLog(@"A"); }]; My only working implementation is as follows: // B [_viewModel.loginCommand.executionSignals subscribeNext:^(RACSignal *loginSignal) { [loginSignal subscribeCompleted:^{ NSLog(@"B"); }]; }]; Why doesn't -flatten work in "A", and how I can I rewrite "B" to not use a nested subscription? 回答1: The -flatten