Cancel RACCommand execution
问题 Is there any way to cancel execution of a RACCommand ? For example I have a command with infinite execution signal like this: RACCommand *command = [[RACCommand alloc] initWithSignalBlock:^RACSignal *(id input) { return [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) { __block BOOL stop = NO; while (!stop) { [subscriber sendNext:nil]; } return [RACDisposable disposableWithBlock:^{ stop = YES; }]; }]; }]; So how can I stop it after calling [command execute:nil] ? 回答1: I