@@ -556,27 +556,27 @@ - (instancetype)skipUntilBlock:(BOOL (^)(id x))predicate {
556
556
557
557
@implementation RACSignal (Subscription)
558
558
559
- - (RACDisposable *)subscribe : (id <RACSubscriber>)subscriber {
559
+ - (nullable RACDisposable *)subscribe : (id <RACSubscriber>)subscriber {
560
560
NSCAssert (NO , @" This method must be overridden by subclasses" );
561
561
return nil ;
562
562
}
563
563
564
- - (RACDisposable *)subscribeNext : (void (^)(id x))nextBlock {
564
+ - (nullable RACDisposable *)subscribeNext : (void (^)(id x))nextBlock {
565
565
NSCParameterAssert (nextBlock != NULL );
566
566
567
567
RACSubscriber *o = [RACSubscriber subscriberWithNext: nextBlock error: NULL completed: NULL ];
568
568
return [self subscribe: o];
569
569
}
570
570
571
- - (RACDisposable *)subscribeNext : (void (^)(id x))nextBlock completed : (void (^)(void ))completedBlock {
571
+ - (nullable RACDisposable *)subscribeNext : (void (^)(id x))nextBlock completed : (void (^)(void ))completedBlock {
572
572
NSCParameterAssert (nextBlock != NULL );
573
573
NSCParameterAssert (completedBlock != NULL );
574
574
575
575
RACSubscriber *o = [RACSubscriber subscriberWithNext: nextBlock error: NULL completed: completedBlock];
576
576
return [self subscribe: o];
577
577
}
578
578
579
- - (RACDisposable *)subscribeNext : (void (^)(id x))nextBlock error : (void (^)(NSError *error))errorBlock completed : (void (^)(void ))completedBlock {
579
+ - (nullable RACDisposable *)subscribeNext : (void (^)(id x))nextBlock error : (void (^)(NSError *error))errorBlock completed : (void (^)(void ))completedBlock {
580
580
NSCParameterAssert (nextBlock != NULL );
581
581
NSCParameterAssert (errorBlock != NULL );
582
582
NSCParameterAssert (completedBlock != NULL );
@@ -585,29 +585,29 @@ - (RACDisposable *)subscribeNext:(void (^)(id x))nextBlock error:(void (^)(NSErr
585
585
return [self subscribe: o];
586
586
}
587
587
588
- - (RACDisposable *)subscribeError : (void (^)(NSError *error))errorBlock {
588
+ - (nullable RACDisposable *)subscribeError : (void (^)(NSError *error))errorBlock {
589
589
NSCParameterAssert (errorBlock != NULL );
590
590
591
591
RACSubscriber *o = [RACSubscriber subscriberWithNext: NULL error: errorBlock completed: NULL ];
592
592
return [self subscribe: o];
593
593
}
594
594
595
- - (RACDisposable *)subscribeCompleted : (void (^)(void ))completedBlock {
595
+ - (nullable RACDisposable *)subscribeCompleted : (void (^)(void ))completedBlock {
596
596
NSCParameterAssert (completedBlock != NULL );
597
597
598
598
RACSubscriber *o = [RACSubscriber subscriberWithNext: NULL error: NULL completed: completedBlock];
599
599
return [self subscribe: o];
600
600
}
601
601
602
- - (RACDisposable *)subscribeNext : (void (^)(id x))nextBlock error : (void (^)(NSError *error))errorBlock {
602
+ - (nullable RACDisposable *)subscribeNext : (void (^)(id x))nextBlock error : (void (^)(NSError *error))errorBlock {
603
603
NSCParameterAssert (nextBlock != NULL );
604
604
NSCParameterAssert (errorBlock != NULL );
605
605
606
606
RACSubscriber *o = [RACSubscriber subscriberWithNext: nextBlock error: errorBlock completed: NULL ];
607
607
return [self subscribe: o];
608
608
}
609
609
610
- - (RACDisposable *)subscribeError : (void (^)(NSError *))errorBlock completed : (void (^)(void ))completedBlock {
610
+ - (nullable RACDisposable *)subscribeError : (void (^)(NSError *))errorBlock completed : (void (^)(void ))completedBlock {
611
611
NSCParameterAssert (completedBlock != NULL );
612
612
NSCParameterAssert (errorBlock != NULL );
613
613
0 commit comments