initial commit

This commit is contained in:
Caleb
2026-03-01 15:59:27 +08:00
commit a9e97d56cb
1426 changed files with 172367 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
//
// RACScopedDisposable.m
// ReactiveObjC
//
// Created by Josh Abernathy on 3/28/12.
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
//
#import "RACScopedDisposable.h"
@implementation RACScopedDisposable
#pragma mark Lifecycle
+ (instancetype)scopedDisposableWithDisposable:(RACDisposable *)disposable {
return [self disposableWithBlock:^{
[disposable dispose];
}];
}
- (void)dealloc {
[self dispose];
}
#pragma mark RACDisposable
- (RACScopedDisposable *)asScopedDisposable {
// totally already are
return self;
}
@end